-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.py
107 lines (96 loc) · 1.93 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import numpy as np
from os import path, cpu_count
from time2graph.utils.base_utils import Debugger
module_path = path.dirname(path.abspath(__file__))
njobs = cpu_count()
if njobs >= 40:
njobs = int(njobs / 2)
EQS = {
'K': 50,
'C': 800,
'seg_length': 24,
'num_segment': 21,
# 'diff': True,
# 'standard_scale': True
}
WTC = {
'K': 20,
'C': 400,
'seg_length': 30,
'num_segment': 30,
# 'feat_norm': True,
# 'softmax': True
# 'diff': True
# 'standard_scale': False
}
STB = {
'K': 50,
'C': 800,
'seg_length': 15,
'num_segment': 15,
}
STEALING = {
'K': 100,
'C': 1000,
'seg_length': 24,
'num_segment': 12
}
TELECOM = {
'K': 100,
'C': 1000,
'seg_length': 24,
'num_segment': 40
}
ELDERLY = {
'K': 100,
'C': 1000,
'seg_length': 30,
'num_segment': 24
}
model_args = {
'ucr-Earthquakes': EQS,
'ucr-WormsTwoClass': WTC,
'ucr-Strawberry': STB,
'stealing': STEALING,
'telecom': TELECOM,
'elderly': ELDERLY
}
xgb_args = {
'ucr-Earthquakes': {
'max_depth': 8,
'learning_rate': 0.1,
'scale_pos_weight': 1,
'n_estimators': 80,
'booster': 'gbtree'
},
'ucr-WormsTwoClass': {
'max_depth': 1,
'learning_rate': 0.1,
'scale_pos_weight': 1,
'n_estimators': 50,
'booster': 'gblinear'
},
'ucr-Strawberry': {
'max_depth': 8,
'learning_rate': 0.2,
'scale_pos_weight': 1,
'n_estimators': 10,
'booster': 'gbtree'
},
'elderly': {
'max_depth': 8,
'learning_rate': 0.1,
'scale_pos_weight': 10,
'n_estimators': 50,
'booster': 'gbtree'
}
}
__all__ = [
'np',
'path',
'Debugger',
'module_path',
'njobs',
'xgb_args',
'model_args'
]