ViolaJones/python/Makefile
2023-05-07 20:15:55 +02:00

35 lines
877 B
Makefile

DATA := ../data/X_train.bin ../data/X_test.bin ../data/y_train.bin ../data/y_test.bin
.PHONY: all start reset
all: ${DATA}
${DATA}:
@bash ../download_data.sh ..
venv:
@bash -c 'source activate.sh'
start: ${DATA} venv
@bash -c 'source activate.sh && python projet.py'
reset:
@echo Deleting generated states and models
@rm -rf out/* models/* | true
debug:
@bash -c 'source activate.sh && pudb projet.py'
profile:
@bash -c 'source activate.sh && python -m cProfile -o prof.out projet.py && gprof2dot -f pstats prof.out | dot -Tpng -o output.png'
mrproper: reset
@rm -r __pycache__ venv
test:
@bash -c 'source activate.sh && ls out | sed s/.pkl// | xargs -n1 python test_diff.py out'
@bash -c 'source activate.sh && ls models | sed s/.pkl// | xargs -n1 python test_diff.py models'
help:
@echo "all start reset mrproper help"