-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
57 lines (49 loc) · 1.4 KB
/
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
import pandas as pd
import numpy as np
import torch
random_seed = 42
np.random.seed(random_seed)
torch.manual_seed(random_seed)
torch.cuda.manual_seed(random_seed)
device = 'cuda:0'
EPS = 10 ** -6
DIR = '/data1/trufanova/energy'
columns_config = {
'numerical': ['square_feet', 'year_built', 'floor_count', 'air_temperature', 'cloud_coverage', 'dew_temperature',
'precip_depth_1_hr', 'sea_level_pressure', 'wind_direction', 'wind_speed'
# , 'mean_target'
],
'categorical': [
# 'site_id', 'building_id',
'primary_use', 'wind_direction_cat', 'month', 'hour', 'season', 'daytime']
}
models_config = {
'nn': {
'init_config':
{
'net_config': {
'n_hidden': 1,
'batch_norm': False,
'dropout': False,
'k': 3
},
'lr': 0.001,
},
'train_config': {'n_epochs': 1},
},
'cb': {
'init_config':
{
'model_config': {
'iterations': 100,
'learning_rate': 1,
'depth': 20,
'task_type': 'GPU',
'devices': '1',
'random_seed': 42,
'use_best_model': True,
}
},
'train_config': {}
}
}