-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 842 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Remove compiled bytecode of source files
dev-clean-pyc:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '__pycache__' -exec rm -fr {} +
@find . -name '*.pytest_cache' -exec rm -fr {} +
# Setup the project environment by:
# - Run pipenv shell to start the virtual env
env:
pipenv --python=$(conda run which python) --site-packages
pipenv shell
# Install all libraries of package
install-all:
pipenv install --system --dev
# Install a package
install:
pipenv install $(pkg)
# Install a package in dev mode
install-dev:
pipenv install --dev $(pkg)
# Run the model
model:
pipenv run python src/main.py
# Run tensorboard
board:
tensorboard --logdir storage/logs/fit-1711494431
# Run the model and predict a random value from our dataset.
predict:
pipenv run python src/predict.py