citybert/Makefile
2023-05-04 19:10:33 +00:00

26 lines
705 B
Makefile

city_distances.csv: check generate_data.py
@echo "Generating distance data..."
@bash -c 'time python generate_data.py'
train: check train.py
@echo "Training embeddings..."
@bash -c 'time python train.py'
eval: check eval.py
@echo "Evaluating trained model..."
@bash -c 'time python eval.py'
lint:
@echo "Auto-linting files and performing final style checks..."
@isort --profile=black .
@black .
@flake8 --max-line-length=88 .
check: lint
@echo "Checking for unstaged or untracked changes..."
@git diff-index --quiet HEAD -- || { echo "Unstaged or untracked changes detected!"; exit 1; }
clean:
@echo "Removing outputs/ and checkpoints/ directories"
@rm -rf output/
@rm -rf checkpoints/