-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 1.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
.PHONY: clean
all: render_report
download_data:
python scripts/download_data.py \
--name=ObesityDataSet_raw_data_sinthetic.csv \
--write_to=data/raw
clean_data: download_data
python scripts/clean_data.py \
--raw-data='data/raw/ObesityDataSet_raw_data_sinthetic.csv' \
--name='ObesityDataSet_processed_data.csv' \
--data-to="data/processed/" \
--plot-to="results/figures"
split_preprocess_data: clean_data
python scripts/split_n_preprocess.py \
--clean-data=data/processed/ObesityDataSet_processed_data.csv \
--data-to=data/processed \
--preprocessor-to=results/models \
--seed=522 \
--html-to="results/htmls"
eda: split_preprocess_data
python scripts/eda.py \
--training_data_split=data/processed/obesity_train.csv \
--plot_path=results/figures/
fit_obesity_classifier: eda
python scripts/fit_obesity_classifier.py \
--encoded-train-data=data/processed/obesity_train_target_encoding.csv \
--data-to=results/tables --preprocessor=results/models/obesity_preprocessor.pickle \
--seed=522 --pipeline-to=results/models
evaluate_models: fit_obesity_classifier
python scripts/evaluate_models.py \
--test-data=data/processed/obesity_test_target_encoding.csv \
--pipeline-path=results/models/trained_pipelines.pkl \
--data-to=results/tables \
--plot-to=results/figures
render_report: evaluate_models
quarto render report/obesity_level_predictor_report.qmd --to html
clean:
rm -f data/raw/*
rm -f data/processed/*
rm -f results/figures/*
rm -f results/htmls/*
rm -f results/tables/*
rm -f results/models/*