mm
2 years ago
1 changed files with 13 additions and 8 deletions
@ -1,21 +1,26 @@ |
|||||
city_distances.csv: check generate_data.py |
city_distances.csv: check generate_data.py |
||||
bash -c 'time python generate_data.py' |
@echo "Generating distance data..." |
||||
|
@bash -c 'time python generate_data.py' |
||||
|
|
||||
train: check train.py |
train: check train.py |
||||
bash -c 'time python train.py' |
@echo "Training embeddings..." |
||||
|
@bash -c 'time python train.py' |
||||
|
|
||||
eval: check eval.py |
eval: check eval.py |
||||
bash -c 'time python eval.py' |
@echo "Evaluating trained model..." |
||||
|
@bash -c 'time python eval.py' |
||||
|
|
||||
lint: |
lint: |
||||
isort --profile=black . |
@echo "Auto-linting files and performing final style checks..." |
||||
black . |
@isort --profile=black . |
||||
flake8 --max-line-length=88 . |
@black . |
||||
|
@flake8 --max-line-length=88 . |
||||
|
|
||||
check: lint |
check: lint |
||||
@echo "Checking for unstaged or untracked changes..." |
@echo "Checking for unstaged or untracked changes..." |
||||
@git diff-index --quiet HEAD -- || { echo "Unstaged or untracked changes detected!"; exit 1; } |
@git diff-index --quiet HEAD -- || { echo "Unstaged or untracked changes detected!"; exit 1; } |
||||
|
|
||||
clean: |
clean: |
||||
rm -rf output/ |
@echo "Removing outputs/ and checkpoints/ directories" |
||||
rm -rf checkpoints/ |
@rm -rf output/ |
||||
|
@rm -rf checkpoints/ |
Loading…
Reference in new issue