-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (44 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
57 lines (44 loc) · 1.19 KB
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
#----------------------------------------
# Targets to run the model pipeline
#----------------------------------------
# Download the data
download:
python -m src.data.download
# Preprocess the data
preprocess:
python -m src.preprocess.dataset
# Train the model
train:
python -m src.model.train
# Evaluate the model
evaluate:
python -m src.evaluate.evaluate
# Visualize the model
visualize:
python -m src.visualization.visualize
# Install the dependencies
install:
pip install -r requirements.txt
# Run the model pipeline
run: visualize
# Run all: Run the model pipeline
all: download visualize
#----------------------------------------
# Cleaning folders
#----------------------------------------
# Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
# Delete all data
clean-data:
rm -rf data/names/
rm -rf data/data.zip
rm -rf data/eng-fra.txt
rm -rf models/model.pth
rm -rf reports/figures/confusion.png
# Delete all
clean-all: clean clean-data
# NOTE FOR WINDOWS USERS: Make is more challenging to install on Windows.
# I recommend using Chocolately guide here:
# https://earthly.dev/blog/makefiles-on-windows/