forked from petecheng/Time2Graph
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
67 lines (61 loc) · 1.16 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
# -*- coding: utf-8 -*-
import numpy as np
from os import path
from time2graph.utils.base_utils import Debugger
module_path = path.dirname(path.abspath(__file__))
EQS = {
'K': 50,
'C': 800,
'seg_length': 24,
'num_segment': 21,
'percentile': 5
}
WTC = {
'K': 20,
'C': 400,
'seg_length': 30,
'num_segment': 30,
'percentile': 5,
'global_flag': False
}
STB = {
'K': 50,
'C': 800,
'seg_length': 15,
'num_segment': 15,
'percentile': 10,
'embed': 'aggregate'
}
model_args = {
'ucr-Earthquakes': EQS,
'ucr-WormsTwoClass': WTC,
'ucr-Strawberry': STB
}
xgb_args = {
'ucr-Earthquakes': {
'max_depth': 16,
'learning_rate': 0.2,
'scale_pos_weight': 1,
'booster': 'gbtree'
},
'ucr-WormsTwoClass': {
'max_depth': 2,
'learning_rate': 0.2,
'scale_pos_weight': 1,
'booster': 'gbtree'
},
'ucr-Strawberry': {
'max_depth': 8,
'learning_rate': 0.2,
'scale_pos_weight': 1,
'booster': 'gbtree'
}
}
__all__ = [
'np',
'path',
'Debugger',
'module_path',
'model_args',
'xgb_args'
]