2022-11-05 07:57:52 -07:00
|
|
|
CONDA_ENV=ml_pipeline
|
2023-01-26 11:00:24 -08:00
|
|
|
.PHONY: help
|
2022-11-05 07:57:52 -07:00
|
|
|
|
2023-01-26 11:00:24 -08:00
|
|
|
all: help
|
2022-11-05 07:57:52 -07:00
|
|
|
|
2023-01-26 11:00:24 -08:00
|
|
|
run: ## run the pipeline (train)
|
2023-01-26 11:49:28 -08:00
|
|
|
python src/train.py \
|
2023-01-26 11:00:24 -08:00
|
|
|
debug=false
|
|
|
|
debug: ## run the pipeline (train) with debugging enabled
|
2023-01-26 11:49:28 -08:00
|
|
|
python src/train.py \
|
2023-01-26 11:00:24 -08:00
|
|
|
debug=true
|
2022-10-29 17:19:59 -07:00
|
|
|
|
2023-01-26 11:00:24 -08:00
|
|
|
data: ## download the mnist data
|
|
|
|
wget https://pjreddie.com/media/files/mnist_train.csv -O data/mnist_train.csv
|
|
|
|
wget https://pjreddie.com/media/files/mnist_test.csv -O data/mnist_test.csv
|
2022-10-29 17:19:59 -07:00
|
|
|
|
2023-01-27 21:51:43 -08:00
|
|
|
install: conda-lock.yml ## import any changes to env.yml into conda env
|
|
|
|
conda-lock install --name ${CONDA_ENV} $^
|
|
|
|
|
|
|
|
lock: environment.yml ## lock the current conda env
|
|
|
|
conda-lock
|
2023-01-26 11:00:24 -08:00
|
|
|
|
|
|
|
env_export: ## export the conda envirnoment without package or name
|
|
|
|
conda env export | head -n -1 | tail -n +2 > $@
|
|
|
|
|
|
|
|
help: ## display this help message
|
|
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
2022-11-05 07:57:52 -07:00
|
|
|
|