-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (41 loc) · 1.22 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
.PHONY: dryrun, setup, test, train_and_predict, update_inventory
dryrun_reproduction:
snakemake \
-s snakemake/train_predict.smk -np \
--configfile config/train_predict.yml
setup:
pip install -r requirements.txt
echo "import nltk \nnltk.download('punkt')" | python3 /dev/stdin
pip install --upgrade numpy
Rscript -e 'install.packages("renv"), repos="http://cran.us.r-project.org"'
Rscript -e 'renv::restore()'
setup_for_updating:
pip install -r requirements.txt
echo "import nltk \nnltk.download('punkt')" | python3 /dev/stdin
pip install --upgrade numpy
test:
python3 -m pytest -v \
--flake8 --mypy --pylint \
--pylint-rcfile=config/.pylintrc \
src/inventory_utils/*.py \
src/*.py \
train_and_predict:
snakemake \
-s snakemake/train_predict.smk \
--configfile config/train_predict.yml -c1
process_manually_reviewed_original:
snakemake \
-s snakemake/train_predict.smk \
--configfile config/train_predict.yml \
-c 1 \
--until all_analysis
update_inventory:
snakemake \
-s snakemake/update_inventory.smk \
--configfile config/update_inventory.yml -c1
process_manually_reviewed_update:
snakemake \
-s snakemake/update_inventory.smk \
--configfile config/update_inventory.yml \
-c 1 \
--until process_countries