-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
67 lines (49 loc) · 937 Bytes
/
config.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
######################
# Choose dataset: #
######################
dataset = '2d_linear'
#########
# Data: #
#########
weighted = 0
on_shell = 0
mom_cons = 0
scaler = 1.
##############
# Training: #
##############
lr = 1e-3
batch_size = 512
gamma = 0.999
weight_decay = 1e-5
betas = (0.9, 0.999)
do_rev = False
do_fwd = True
n_epochs = 1
n_its_per_epoch = 1
adversarial = False
mmd = False
variational = False
#################
# Architecture: #
#################
n_blocks = 1
n_units = 16
n_layers = 2
####################
# Logging/preview: #
####################
loss_names = ['L', 'L_rev']
progress_bar = True # Show a progress bar of each epoch
show_interval = 5
save_interval = 10
###################
# Loading/saving: #
###################
test = False
train = True
predict = 'uniform'
save_model = True
load_model = False
save_dir = './experiments'
checkpoint_on_error = False