-
Notifications
You must be signed in to change notification settings - Fork 13
/
database.py
59 lines (46 loc) · 992 Bytes
/
database.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
PRICES = [
'open', 'high', 'low', 'close',
'vwap', 'returns'
]
VOLUMES = [
'volume', 'adv20', 'cap'
]
one_OP_one = [
'+', '-', '*', '/', '^'
]
OP_one = [
'', 'rank', 'sigmoid', 'exp',
'fraction', 'log', 'log_diff', 'scale',
'zscore'
]
UNARY_OP = ['', '-']
TS_OP_1D1P = [
'ts_product', 'ts_std_dev', 'ts_rank',
'ts_sum', 'ts_entropy', 'ts_av_diff', 'ts_arg_max',
'ts_decay_linear', 'ts_delay', 'ts_delta', 'ts_ir',
'ts_max', 'ts_max_diff', 'ts_median', 'ts_min',
'ts_min_diff', 'ts_skewness', 'ts_kurtosis'
]
TS_OP_1D2P = [
'ts_corr'
]
GROUP_OP_1D1P = [
'group_zscore', 'group_std_dev', 'group_rank',
'group_sum', 'group_scale', 'group_max',
'group_median'
]
GROUP_DT = [
'market', 'sector', 'industry', 'subindustry'
]
P_or_M = [
'', '-'
]
DEAL_WITH_WEIGHT = [
'rank', 'sigmoid', ''
]
IF_ELSE = [
'?', ':'
]
CONDITION = [
'>', '<', '='
]