-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.py
46 lines (41 loc) · 1.07 KB
/
parameters.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
37
38
39
40
41
42
43
44
45
class EnvParams:
SPECIES_AGENTS_RANGE = (3, 3)
SPECIES_RANGE = (3, 5)
TASKS_RANGE = (15, 50)
MAX_TIME = 200
TRAIT_DIM = 5
DECISION_DIM = 30
class TrainParams:
USE_GPU = False
USE_GPU_GLOBAL = True
NUM_GPU = 1
NUM_META_AGENT = 16
LR = 1e-5
GAMMA = 1
DECAY_STEP = 2e3
RESET_OPT = False
EVALUATE = True
EVALUATION_SAMPLES = 256
RESET_RAY = False
INCREASE_DIFFICULTY = 20000
SUMMARY_WINDOW = 8
DEMON_RATE = 0.5
IL_DECAY = -1e-5 # -1e-6 700k decay 0.5, -1e-5 70k decay 0.5, -1e-4 7k decay 0.5
BATCH_SIZE = 2048
AGENT_INPUT_DIM = 6 + EnvParams.TRAIT_DIM
TASK_INPUT_DIM = 5 + 2 * EnvParams.TRAIT_DIM
EMBEDDING_DIM = 128
SAMPLE_SIZE = 200
PADDING_SIZE = 50
POMO_SIZE = 10
FORCE_MAX_OPEN_TASK = False
class SaverParams:
FOLDER_NAME = 'save_1'
MODEL_PATH = f'model/{FOLDER_NAME}'
TRAIN_PATH = f'train/{FOLDER_NAME}'
GIFS_PATH = f'gifs/{FOLDER_NAME}'
LOAD_MODEL = False
LOAD_FROM = 'current' # 'best'
SAVE = True
SAVE_IMG = True
SAVE_IMG_GAP = 1000