-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (42 loc) · 1.49 KB
/
Makefile
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
.PHONY: setting install analysis train predict clean all
#################################################################################
# COMMANDS #
#################################################################################
# group by model
install:
pip install -r requirements.txt
setting: install
python src/utils.py -set_params 5 0.2 all
analysis: install
python src/analysis/feature_analysis.py
train: setting
python src/model/train_group_by_model.py
predict: setting
python src/model/predict_group_by_model.py
clean:
find . -name "*.pyc" -exec rm {} \;
group: install setting train predict
# rf model
setting_rf: install
python src/utils.py -set_params 5 0.05 all
data_rf: setting_rf
python src/features/build_baseline_features.py
python src/features/build_group_by_features.py
python src/features/concat_features.py
train_rf: setting_rf
python src/model/train_rf_model.py
predict_rf: setting_rf
python src/model/predict_rf_model.py
rf: install setting_rf data_rf train_rf predict_rf
# xgboost model
setting_xgb: install
python src/utils.py -set_params 5 0.05 all
data_xgb: setting_xgb
python src/features/build_baseline_features.py
python src/features/build_group_by_features.py
python src/features/concat_features.py
train_xgb: setting_xgb
python src/model/train_xgb_model.py
predict_xgb: setting_xgb
python src/model/predict_xgb_model.py
xgb: install setting_xgb data_xgb train_xgb predict_xgb