-
Notifications
You must be signed in to change notification settings - Fork 0
/
dvc.yaml
68 lines (63 loc) · 1.99 KB
/
dvc.yaml
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
stages:
load_data:
cmd: python src/stage_01_load_and_save.py -c config/config.yaml
deps:
- src\stage_01_load_and_save.py
- src\utils\all_utils.py
- config\config.yaml
outs:
- artifacts\raw_local_dir\data.csv
split_data:
cmd: python src/stage_02_split_data.py -c config/config.yaml -p params.yaml
deps:
- src\stage_02_split_data.py
- src\utils\all_utils.py
- config\config.yaml
- artifacts\raw_local_dir\data.csv
params:
- base.random_state
- base.test_size
outs:
- artifacts\split_data_dir\train.csv
- artifacts\split_data_dir\test.csv
training:
cmd: python src/stage_03_train.py -c config/config.yaml -p params.yaml
deps:
- src\stage_03_train.py
- src\stage_02_split_data.py
- src\utils\all_utils.py
- config\config.yaml
params:
- base.random_state
- model_params.random_forest.model_name
- model_params.random_forest.n_estimators
- model_params.random_forest.max_depth
- model_params.random_forest.max_features
- model_params.random_forest.min_samples_split
- model_params.random_forest.min_samples_leaf
outs:
- artifacts\model_dir\Random_Forest.pkl
- artifacts\model_dir\XGBoost.pkl
evaluate:
cmd: python src/stage_04_evaluate.py -c config/config.yaml -p params.yaml
deps:
- src\stage_04_evaluate.py
- src\utils\all_utils.py
- src\stage_03_train.py
- config\config.yaml
- artifacts\model_dir\Random_Forest.pkl
- artifacts\model_dir\XGBoost.pkl
- artifacts\split_data_dir\test.csv
outs:
- artifacts\report_dir\rf_score.json
- artifacts\report_dir\xgb_score.json
# predict:
# cmd: python app.py
# deps:
# - app.py
# - src\utils\all_utils.py
# - config\config.yaml
# - artifacts\model_dir\Random_Forest.pkl
# - artifacts\model_dir\XGBoost.pkl
# - artifacts\split_data_dir\test.csv
# - templates\home.html