forked from ChuanyuXue/KDDCUP-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sh
89 lines (71 loc) · 3.34 KB
/
main.sh
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
## Before started, make sure you put
## 'underexpose_item_feat.csv' in ./user_data/dataset
## 'w2v_txt_vec.txt' in ./user_data
## 'w2v_img_vec.txt' in ./user_data
# Generate dataset
python ./code/1_DataPreprocessing/01_Generate_Offline_Dataset_origin.py
python ./code/1_DataPreprocessing/02_Generate_Model1_Dataset_origin.py
python ./code/1_DataPreprocessing/03_Create_Model1_Answer.py
python ./code/1_DataPreprocessing/04_TransformDateTime-Copy1.py
# Generate Similarity
python ./code/2_Similarity/deep_node_model.py
python ./code/2_Similarity/01_itemCF_Mundane_model1.py
python ./code/2_Similarity/01_itemCF_Mundane_offline.py
python ./code/2_Similarity/01_itemCF_Mundane_online.py
python ./code/2_Similarity/RA_Wu_model1.py
python ./code/2_Similarity/RA_Wu_offline.py
python ./code/2_Similarity/RA_Wu_online.py
# Generate candidates
python ./code/3_Recall/01_Recall-Wu-model1.py
python ./code/3_Recall/01_Recall-Wu-offline.py
python ./code/3_Recall/01_Recall-Wu-online.py
# NN model
python ./code/3_NN/ItemFeat2.py
# train 1 online
python ./code/3_NN/sas_rec.py --kind 1 --train 1
# train 2 offline
python ./code/3_NN/sas_rec.py --kind 2 --train 1
# train 3 model
python ./code/3_NN/sas_rec.py --kind 3 --train 1
# test 1
python ./code/3_NN/sas_rec.py --kind 1 --test 1
# tets 2
python ./code/3_NN/sas_rec.py --kind 2 --test 1
# test 3
python ./code/3_NN/sas_rec.py --kind 3 --test 1
# Generate feature
python ./code/4_RankFeature/01_sim_feature_model1.py
python ./code/4_RankFeature/01_sim_feature_model1_RA_AA.py
python ./code/4_RankFeature/01_sim_feature_offline.py
python ./code/4_RankFeature/01_sim_feature_offline_RA_AA.py
python ./code/4_RankFeature/01_sim_feature_online.py
python ./code/4_RankFeature/01_sim_feature_online_RA_AA.py
python ./code/4_RankFeature/02_itemtime_feature_model1.py
python ./code/4_RankFeature/02_itemtime_feature_offline.py
python ./code/4_RankFeature/02_itemtime_feature_online.py
python ./code/4_RankFeature/03_count_feature_model1.py
python ./code/4_RankFeature/03_count_feature_offline.py
python ./code/4_RankFeature/03_count_feature_online.py
python ./code/4_RankFeature/04_NN_feature_model1.py
python ./code/4_RankFeature/04_NN_feature_offline.py
python ./code/4_RankFeature/04_NN_feature_online.csv.py
python ./code/4_RankFeature/05_txt_feature_model1.py
python ./code/4_RankFeature/05_txt_feature_offline.py
python ./code/4_RankFeature/05_txt_feature_online.py
python ./code/4_RankFeature/06_interactive_model1.py
python ./code/4_RankFeature/06_interactive_offline.py
python ./code/4_RankFeature/06_interactive_online.py
python ./code/4_RankFeature/07_count_detail_model1.py
python ./code/4_RankFeature/07_count_detail_offline.py
python ./code/4_RankFeature/07_count_detail_online.py
python ./code/4_RankFeature/08_user_feature_model1.py
python ./code/4_RankFeature/08_user_feature_offline.py
python ./code/4_RankFeature/08_user_feature_online.py
python ./code/4_RankFeature/09_partial_sim_feature_model1.py
python ./code/4_RankFeature/09_partial_sim_feature_offline.py
python ./code/4_RankFeature/09_partial_sim_feature_online.py
python ./code/4_RankFeature/10_emergency_feature_model1.py
python ./code/4_RankFeature/10_emergency_feature_offline.py
python ./code/4_RankFeature/10_emergency_feature_online.py
# Build model
python ./code/5_Modeling/Model_Online.py