-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
Makefile
38 lines (30 loc) · 894 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
37
38
all:
make install-keras
make install-pytorch
install-keras:
export FRAMEWORK="keras" && pip install -e .
install-pytorch:
export FRAMEWORK="pytorch" && pip install -e .
clean:
rm -rf *egg-info build dist nbeats_pytorch/__pycache__ __pycache__ nbeats_keras/__pycache__ results .DS_Store .ipynb_checkpoints
deploy-keras:
pip install twine --upgrade
make clean
export FRAMEWORK="keras" && python setup.py sdist bdist_wheel
twine upload dist/*
deploy-pytorch:
pip install twine --upgrade
make clean
export FRAMEWORK="pytorch" && python setup.py sdist bdist_wheel
twine upload dist/*
deploy:
make deploy-keras
make deploy-pytorch
run-jupyter:
pip install jupyter
jupyter notebook examples/NBeats.ipynb
test:
pip3 install tox
rm -rf .tox
export FRAMEWORK="pytorch" && touch .torch && python3 -m tox -e torch; rm .torch
export FRAMEWORK="keras" && python3 -m tox -e keras