-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (38 loc) · 1.49 KB
/
config.py
File metadata and controls
47 lines (38 loc) · 1.49 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
47
class Config():
def __init__(self):
# experiment type
self.exp = ['RSC', 'PFC'][0]
self.data_path = 'data/'
self.experiments = ['RSC_LFP_rat5_500Hz.mat'] #['RSC_LFP_rat3_500Hz.mat'] #, 'RSC_LFP_rat4_600Hz.mat','RSC_LFP_rat5_600Hz.mat']
self.test_experiment = 'RSC_LFP_rat3_500Hz.mat'
#self.experiments = ['PFC_LFP_rat1.mat'] #, 'PFC_LFP_rat2.mat']
#self.test_experiment = ['PFC_LFP_rat1.mat']
self.save_path = 'ckpts/'
# training related hyperparameters
self.dataset_size = 100000
self.n_timesteps = 1024 #256 #32
self.train_params = {
'batch_size': 1024,
'shuffle': False,
'num_workers': 1
}
self.max_epochs = 100
self.train_zscore = False
self.model_name = 'rodentRSC'
self.per_timestep_supervision = True
# the mode of model training
self.model_type = ['awake', 'asleep'][1]
# the kind of training data we provide to the models
self.style = ['raw', 'pca'][1]
# model related hyperparameters
self.embedding_dim = 3
self.hidden_dim = 128
self.output_dim = 3
# params for LFP data preprocessing
self.order = 6
self.fs = 600.
self.cutoff = 6.
self.window = 5 * self.fs
self.min_bout_duration = 3. * self.fs
self.merge_thresh = 2. * self.fs
self.pca_window = (1/6)*self.fs