-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_simulation.py
36 lines (32 loc) · 1.16 KB
/
run_simulation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import simulations
import extremity_game
if __name__ == "__main__":
# num_batches_test = 10
# num_objects_test = (5, )
# mini_batch_size_test = (2, )
# num_trials_test = 1
# object_size_test = (5, )
# num_processes_test = 4
num_processes_test = 12 # 12
num_objects_test = (5, 10, 15)
num_batches_test = 5000
mini_batch_size_test = (128,) # number of target to predict, number of mini-context in context
num_trials_test = 10
object_size_test = (3, 5)
num_processes_test = 8
simulations.run_simulation_grid(
"extremity_game_acl_4",
extremity_game.make_extremity_game_simulation,
message_sizes=(2,),
num_trials= num_trials_test,
object_size=object_size_test, # number of properties
# strict_context=(True, False),
# shared_context=(True, False),
strict_context=(True, False),
shared_context=(True, False),
num_objects=num_objects_test,
mini_batch_size=mini_batch_size_test,
num_batches=num_batches_test,
num_processes = num_processes_test,
loss_type = ("cross_entropy", "mse") # "mse" # "cross_entropy"
)