forked from muhammadzak/overcome-the-chaos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (19 loc) · 750 Bytes
/
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
.PHONY: all clean test
IRIS_URL = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
all: reports/figures/exploratory.png models/random_forest.model
clean:
rm -f data/raw/*.csv
rm -f data/processed/*.pickle
rm -f data/processed/*.xlsx
rm -f reports/figures/*.png
rm -f models/*.model
data/raw/iris.csv:
python src/data/download.py $(IRIS_URL) $@
data/processed/processed.pickle: data/raw/iris.csv
python src/data/preprocess.py $< $@ --excel data/processed/processed.xlsx
reports/figures/exploratory.png: data/processed/processed.pickle
python src/visualization/exploratory.py $< $@
test: all
pytest src
models/random_forest.model: data/processed/processed.pickle
python src/models/train_model.py $< $@