-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (55 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# --------------------------------------------------------------------------------------------
# FULL PIPELINE
# --------------------------------------------------------------------------------------------
full_pipeline: data_pipeline optimization_pipeline train_pipeline eval_pipeline
skip_data_pipeline: optimization_pipeline train_pipeline eval_pipeline
# --------------------------------------------------------------------------------------------
# PREPARE DATA
# --------------------------------------------------------------------------------------------
data_pipeline: clean_data train_test_split
clean_data:
python prepare_data/clean_data.py
train_test_split:
python prepare_data/train_test_split.py
# --------------------------------------------------------------------------------------------
# OPTIMIZATION
# --------------------------------------------------------------------------------------------
optimization_pipeline: optimization_sgd optimization_nb
optimization_sgd:
python hyperparam_search/optuna_search_sgd.py
optimization_nb:
python hyperparam_search/optuna_search_nb.py
# --------------------------------------------------------------------------------------------
# TRAIN
# --------------------------------------------------------------------------------------------
train_pipeline: train_sgd train_nb
train_sgd:
python train/train_best_sgd.py
train_nb:
python train/train_best_nb.py
# --------------------------------------------------------------------------------------------
# EVALUATION ON TEST
# --------------------------------------------------------------------------------------------
eval_pipeline: eval_best_sgd eval_best_nb
eval_best_sgd:
python evaluation/sgd_evaluation.py
eval_best_nb:
python evaluation/nb_evaluation.py
# --------------------------------------------------------------------------------------------
# TRAIN ON FULL DATASET
# --------------------------------------------------------------------------------------------
final_train_pipeline: final_train_sgd final_train_nb
final_train_sgd:
python train/train_final_sgd.py
final_train_nb:
python train/train_final_nb.py
# --------------------------------------------------------------------------------------------
# CHECK FEATURES
# --------------------------------------------------------------------------------------------
check_features:
python evaluation/check_features.py
# --------------------------------------------------------------------------------------------
# DELETE OPTUNA STUDIES
# --------------------------------------------------------------------------------------------
delete_studies:
python hyperparam_search/delete_studies.py