-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (50 loc) · 1.32 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
UNAME := $(shell uname)
default:
echo "See README.md"
ifeq ($(OS), Windows_NT)
init: windows_init
load_data: windows_load_data
train_xgb: windows_train_xgb
app: windows_app
app_dev: windows_app_dev
else
init: linux_init
load_data: linux_load_data
train_xgb: linux_train_xgb
app: linux_app
app_dev: linux_app_dev
endif
linux_init:
python3 -m venv .venv; \
. .venv/bin/activate; \
pip install -r requirements.txt; \
linux_load_data:
. .venv/bin/activate; \
python3 -m src.data.load_data_pipeline; \
python3 -m src.data.remove_duplicates; \
linux_train_xgb: data/housing_data.csv
. .venv/bin/activate; \
python3 -m src.models.xgb_train; \
linux_app: models/xgb.pkl
. .venv/bin/activate; \
uvicorn app:app; \
linux_app_dev: models/xgb.pkl
. .venv/bin/activate; \
uvicorn app:app --reload; \
windows_init:
python -m venv .venv; \
source .venv/Scripts/activate; \
pip install -r requirements.txt; \
windows_load_data:
source .venv/Scripts/activate; \
python -m src.data.load_data_pipeline; \
python -m src.data.remove_duplicates; \
windows_train_xgb: data/housing_data.csv
source .venv/Scripts/activate; \
python -m src.models.xgb_train; \
windows_app: ./models/xgb.pkl
source .venv/Scripts/activate; \
uvicorn app:app; \
windows_app_dev: models/xgb.pkl
source .venv/Scripts/activate; \
uvicorn app:app --reload; \