-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdvc.yaml
80 lines (75 loc) · 1.92 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
68
69
70
71
72
73
74
75
76
77
78
79
80
# vars:
# - params: ../params.yaml
# - pipeline_name: pipeline1
stages:
load_data:
cmd: python src/stage_load_data.py --params=params.yaml
params:
- base
- data_load
deps:
- src/stage_load_data.py
prep_features:
cmd: python src/stage_prep_features.py --params=params.yaml
params:
- base
- data_load
- data_condition
deps:
- src/features/create_xy.py
- src/stage_prep_features.py
- src/features/PlantationsData.py
outs:
- ${data_condition.modelData_path}:
persist: True
select_features_hyperparams:
cmd: python src/stage_select_and_tune.py --params=params.yaml
params:
- base
- data_condition
- train
- select
deps:
- ${data_condition.modelData_path}
- src/features/feature_selection.py
outs:
- ${tune.best_params}:
persist: True
- ${select.selected_features_path}:
persist: True
train_model:
cmd: python src/stage_train_model.py --params=params.yaml
params:
- base
- data_condition
- train
deps:
- ${data_condition.modelData_path}
- ${select.selected_features_path}
- ${tune.best_params}
- src/model/train.py
- src/stage_train_model.py
outs:
- ${train.model_name}
evaluate_model:
cmd: python src/stage_evaluate_model.py --params=params.yaml
params:
- base
- data_condition
- train
- evaluate
deps:
- ${data_condition.modelData_path}
- ${select.selected_features_path}
- ${tune.best_params}
- ${train.model_name}
- src/evaluation/validation_visuals.py
- src/stage_evaluate_model.py
metrics:
- src/evaluation/metrics.json
plots:
- src/evaluation/confusion_matrix.png
- src/evaluation/confusion_matrix_data.csv:
template: confusion_normalized
x: predicted
y: y_true