-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault_config.py
More file actions
46 lines (35 loc) · 1.21 KB
/
default_config.py
File metadata and controls
46 lines (35 loc) · 1.21 KB
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
class DataPaths(object):
#Train dataset and test dataset must be under the form [(DATASET1_X, DATASET1_Y), (DATASET2_X, DATASET2_Y), ...]
#Metric input is a list of additionnal input for the metric function (must match the additional input of the metric function)
TRAIN_DATASET_PATH = 'data/datasetsTrain_list.pickle'
TEST_DATASET_PATH = 'data/datasetsTest_list.pickle'
METRIC_INPUTS_PATH = 'data/metric_inputs.pickle'
class ModelPaths(object):
PREDICTOR_PATH = 'NNs/predictor.h5'
LOSS_MODEL_PATH = 'NNs/lossNN.h5'
class ResultsPath(object):
RESULTS_DIR_PATH = 'results'
class args(object):
#General config
nb_predictor = 4
n_epochs = 40
batch_size = 16
batch_size_loss = 16
learning_rate = 0.0001
is_RNN=True
loss_learning_rate = 0.001
loss_input_size= 2*nb_predictor #+ additional inputs
#Cyclic Learning rate config
CLR_use = True
CLR_base_lr = 0.00001
CLR_max_lr = 0.001
CLR_nb_cycles = 3
CLR_mode ='triangular'
# Pretraining the predictors
pretrain = False
pretrain_epochs = 10
pretrain_learning_rate = 0.001
pretrain_batch_size = 64
#Noise config
noise_initial = 0.001
noise_final = 0.00001