-
Notifications
You must be signed in to change notification settings - Fork 2
/
hpc_params.py
47 lines (44 loc) · 1.06 KB
/
hpc_params.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
46
47
from pathlib import Path
common_params = {
'datasource': 'drp_chem',
'cross_validate': True,
'verbose': False,
'train_flag': True,
'gpu_id': 1,
'test_data': True, # TODO: redundant with full_dataset?
'meta': False, # TODO: redundant with pretrain?
'full_dataset': False,
'fine_tuning': False,
'pretrain': True,
'train_size': 10, # k after pretrain
'active_learning_iter': 10, # x before active learning
'stats_path': Path('./results/cv_statistics.pkl'),
'cv_stats_overwrite': True,
'save_model': False
}
meta_params = {
'k_shot': 10,
'n_way': 2,
'inner_lr': 1e-3,
'meta_lr': 1e-3,
'pred_lr': 1e-1,
'meta_batch_size': 10,
'Lt': 1,
'Lv': 100,
'num_inner_updates': 10,
'kl_reweight': 0.0001,
'p_dropout_base': 0.4,
'num_epochs_save': 1000,
'num_batches': 250,
'model_name': 'Platipus'
}
meta_train = {
'num_epochs': 3000,
'resume_epoch': 0,
'train_flag': True
}
meta_test = {
'num_epochs': 0,
'resume_epoch': 3000,
'train_flag': False
}