-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (16 loc) · 780 Bytes
/
makefile
File metadata and controls
23 lines (16 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
help: ## Show help
grep -E '^[.a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
format: ## Run pre-commit hooks to format the code
pre-commit run -a
test: ## Run all tests
coverage erase
coverage run --source=src/ -m pytest tests --durations=10 -vv
coverage report --format=markdown
train: ## Train the model
python src/generative_recommenders_pl/scripts/train.py $(MAKEOVERRIDES)
eval: ## Evaluate the model
python src/generative_recommenders_pl/scripts/eval.py $(MAKEOVERRIDES)
predict: ## Predict the model
python src/generative_recommenders_pl/scripts/predict.py $(MAKEOVERRIDES)
prepare_data: ## Prepare data
python src/generative_recommenders_pl/scripts/prepare_data.py $(MAKEOVERRIDES)