forked from 4paradigm/AutoX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_oneclick.py
65 lines (62 loc) · 1.7 KB
/
run_oneclick.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
from autox import AutoX
data_name = 'zhidemai'
path = f'./data/{data_name}'
feature_type = {
'train.csv': {
'article_id': 'cat',
'date': 'num',
'baike_id_1h': 'cat',
'price': 'num',
'price_diff': 'num',
'author': 'cat',
'level1': 'cat',
'level2': 'cat',
'level3': 'cat',
'level4': 'cat',
'brand': 'cat',
'mall': 'cat',
'url': 'cat',
'comments_1h': 'num',
'zhi_1h': 'num',
'buzhi_1h': 'num',
'favorite_1h': 'num',
'orders_1h': 'num',
'baike_id_2h': 'cat',
'comments_2h': 'num',
'zhi_2h': 'num',
'buzhi_2h': 'num',
'favorite_2h': 'num',
'orders_2h': 'num',
'orders_3h_15h': 'num'
},
'test.csv': {
'article_id': 'cat',
'date': 'num',
'baike_id_1h': 'cat',
'price': 'num',
'price_diff': 'num',
'author': 'cat',
'level1': 'cat',
'level2': 'cat',
'level3': 'cat',
'level4': 'cat',
'brand': 'cat',
'mall': 'cat',
'url': 'cat',
'comments_1h': 'num',
'zhi_1h': 'num',
'buzhi_1h': 'num',
'favorite_1h': 'num',
'orders_1h': 'num',
'baike_id_2h': 'cat',
'comments_2h': 'num',
'zhi_2h': 'num',
'buzhi_2h': 'num',
'favorite_2h': 'num',
'orders_2h': 'num'
}
}
autox = AutoX(target ='orders_3h_15h', train_name ='train.csv', test_name ='test.csv',
id = ['article_id'], path = path, feature_type = feature_type)
submit = autox.get_submit()
submit.to_csv("./submit.csv", index=False)