-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (51 loc) · 2.15 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
ifeq ($(OS),Windows_NT)
SEP = \\
else
SEP = /
endif
clean-python:
poetry run isort .
poetry run black .
create-features:
poetry run python -c "from app.ml.feature_engineering import feature_engineering; feature_engineering()"
score-features:
poetry run python -c "from app.ml.feature_selection import feature_selection; feature_selection()"
build-sandbox:
poetry run python app$(SEP)ml$(SEP)sandbox.py
generate-example:
poetry run python -c "from app.ml.deploy import deploy; deploy('generate_questionnaire_and_example')"
predict-for-example:
poetry run python -c "from app.ml.deploy import deploy; deploy('predict_for_example')"
run-crossval:
poetry run python -c "from app.ml.crossval import run_crossval; run_crossval()"
launch-visuals:
PYTHONPATH=$(pwd):$PYTHONPATH poetry run streamlit run --client.showSidebarNavigation=False app$(SEP)ml$(SEP)visuals.py
train-best-model:
poetry run python -c "from app.ml.deploy import deploy; deploy('train_best_model')"
assign-conditions:
poetry run python -c "from scripts.assign_conditions import assign_conditions; assign_conditions()"
cloud-connect:
gcloud compute ssh datagotchi
create-model:
poetry run python -c "from scripts.train_recommender_model import create_recommender_model; create_recommender_model()"
display-users:
poetry run python -c "from scripts.view_databases import display_users; display_users()"
display-logs:
poetry run python -c "from scripts.view_databases import display_logs; display_logs()"
display-questions:
poetry run python -c "from scripts.view_databases import display_questions; display_questions()"
display-answers:
poetry run python -c "from scripts.view_databases import display_answers; display_answers()"
display-activity:
poetry run python -c "from scripts.view_databases import display_activity; display_activity()"
reload-experiment:
poetry run python -c "from scripts.reload_experiment import reload_databases; reload_databases()"
update-deploy:
git pull
sudo supervisorctl stop microblog
flask db upgrade
sudo supervisorctl start microblog
start-website:
poetry run python microapp.py --config=default
debug:
poetry run python microapp.py --config=debug