-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.py
75 lines (67 loc) · 1.17 KB
/
features.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
LABEL = 'is_churn'
USER_CATEGORICAL = [
'city',
'gender',
'registered_via',
]
NUMERICAL_NON_ULOG = [
'plan_net_worth',
'num_transactions',
'times_canceled',
'mean_payment',
'total_payments',
]
NUMERICAL_AGG_AVG = [
'avg_num_unq',
'avg_total_secs',
'avg_num_25',
'avg_num_50',
'avg_num_75',
'avg_num_985',
'avg_num_100',
]
NUMERICAL_AGG_MAX = [
'max_num_unq',
'max_total_secs',
'max_num_25',
'max_num_50',
'max_num_75',
'max_num_985',
'max_num_100',
]
NUMERICAL_AGG_MIN = [
'min_num_unq',
'min_total_secs',
'min_num_25',
'min_num_50',
'min_num_75',
'min_num_985',
'min_num_100',
]
NUMERICAL_AGG_SUM = [
'sum_num_unq)',
'sum_total_secs)',
'sum_num_25',
'sum_num_50',
'sum_num_75',
'sum_num_985',
'sum_num_100',
]
NUMERICAL_AGG_SUM = [
'sum_num_unq',
'sum_total_secs',
'sum_num_25',
'sum_num_50',
'sum_num_75',
'sum_num_985',
'sum_num_100',
]
NUMERICAL_AGG_STDDEV = [
'stddev_num_unq',
'stddev_total_secs',
'stddev_num_25',
'stddev_num_50',
'stddev_num_75',
'stddev_num_985',
'stddev_num_100',
]