VoyagerYuan
commited on
Commit
·
cecfd31
1
Parent(s):
c72b8ff
Update app.py
Browse files
app.py
CHANGED
@@ -271,29 +271,29 @@ st.title('Multi-Agents Signaling Game')
|
|
271 |
|
272 |
NUM_SENDERS = st.sidebar.slider("NUM_SENDERS", 1, 10, 2)
|
273 |
NUM_RECEIVERS = st.sidebar.slider("NUM_RECEIVERS", 1, 10, 2)
|
274 |
-
num_rounds = st.sidebar.slider("
|
275 |
|
276 |
advanced_settings = st.sidebar.expander("Advanced settings")
|
277 |
with advanced_settings:
|
278 |
-
use_cosine_annealing = st.checkbox("
|
279 |
if use_cosine_annealing:
|
280 |
-
annealing_strategy = st.selectbox("
|
281 |
-
TAU = st.slider("
|
282 |
-
final_tau = st.slider("
|
283 |
else:
|
284 |
annealing_strategy = None
|
285 |
-
TAU = st.slider("
|
286 |
|
287 |
optimizer_options = ["Adam", "AdamW", "SGD"]
|
288 |
-
OPTMIZER = st.selectbox("
|
289 |
-
LEARNING_RATE = st.slider("
|
290 |
|
291 |
EMBEDDING_DIM = st.slider("EMBEDDING_DIM", 1, 128, 16)
|
292 |
HIDDEN_DIM = st.slider("HIDDEN_DIM", 1, 128, 16)
|
293 |
LATENT_DIM = st.slider("LATENT_DIM", 1, 128, 16)
|
294 |
SEQ_LEN = st.slider("SEQ_LEN", 1, 128, 16)
|
295 |
-
NHEAD = st.slider("
|
296 |
-
NUM_LAYERS = st.slider("
|
297 |
BATCH_SIZE = st.slider("BATCH_SIZE", 1, 128, 32)
|
298 |
|
299 |
if st.sidebar.button('Start'):
|
|
|
271 |
|
272 |
NUM_SENDERS = st.sidebar.slider("NUM_SENDERS", 1, 10, 2)
|
273 |
NUM_RECEIVERS = st.sidebar.slider("NUM_RECEIVERS", 1, 10, 2)
|
274 |
+
num_rounds = st.sidebar.slider("NUM_ROUNDS", 1000, 100000, 10000, 1000)
|
275 |
|
276 |
advanced_settings = st.sidebar.expander("Advanced settings")
|
277 |
with advanced_settings:
|
278 |
+
use_cosine_annealing = st.checkbox("USE ANNEALING")
|
279 |
if use_cosine_annealing:
|
280 |
+
annealing_strategy = st.selectbox("ANNEALING STRATEGY", ["linear", "cosine"])
|
281 |
+
TAU = st.slider("START TEMP.", 0.1, 10.0, 1.0)
|
282 |
+
final_tau = st.slider("FINAL TEMP.", 0.1, 10.0, 1.0)
|
283 |
else:
|
284 |
annealing_strategy = None
|
285 |
+
TAU = st.slider("TEMP.", 0.1, 10.0, 1.0)
|
286 |
|
287 |
optimizer_options = ["Adam", "AdamW", "SGD"]
|
288 |
+
OPTMIZER = st.selectbox("OPTIMIZER", optimizer_options)
|
289 |
+
LEARNING_RATE = st.slider("LEARNING RATE", 1e-5, 1e-2, 1e-3, format="%.5f")
|
290 |
|
291 |
EMBEDDING_DIM = st.slider("EMBEDDING_DIM", 1, 128, 16)
|
292 |
HIDDEN_DIM = st.slider("HIDDEN_DIM", 1, 128, 16)
|
293 |
LATENT_DIM = st.slider("LATENT_DIM", 1, 128, 16)
|
294 |
SEQ_LEN = st.slider("SEQ_LEN", 1, 128, 16)
|
295 |
+
NHEAD = st.slider("NHEAD", 1, 8, 4)
|
296 |
+
NUM_LAYERS = st.slider("NUM_LAYERS", 1, 6, 2)
|
297 |
BATCH_SIZE = st.slider("BATCH_SIZE", 1, 128, 32)
|
298 |
|
299 |
if st.sidebar.button('Start'):
|