-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdvc.yaml
More file actions
80 lines (69 loc) · 1.78 KB
/
Copy pathdvc.yaml
File metadata and controls
80 lines (69 loc) · 1.78 KB
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
# add stages here
# config:
# global:
# reflink: false
stages:
prepare_data:
cmd: python src/stage_01_prepare.py --config=configs/config.yaml --params=params.yaml
deps:
- src/stage_01_prepare.py
- data/data.xml
- src/utils/common.py
- src/utils/data_mgmt.py
- configs/config.yaml
params:
- prepare.seed
- prepare.split
outs:
- artifacts/prepared/train.tsv
- artifacts/prepared/test.tsv
featurize:
cmd: python src/stage_02_featurization.py --config=configs/config.yaml --params=params.yaml
deps:
- src/stage_02_featurization.py
- artifacts/prepared/train.tsv
- artifacts/prepared/test.tsv
- src/utils/common.py
- src/utils/featurize.py
- configs/config.yaml
params:
- featurize.max_features
- featurize.ngrams
outs:
- artifacts/features/train.pkl
- artifacts/features/test.pkl
train:
cmd: python src/stage_03_train.py --config=configs/config.yaml --params=params.yaml
deps:
- src/stage_03_train.py
- artifacts/features/train.pkl
- src/utils/common.py
- configs/config.yaml
params:
- train.seed
- train.n_est
- train.min_split
outs:
- artifacts/model/model.pkl
evaluate:
cmd: python src/stage_04_evaluate.py --config=configs/config.yaml
deps:
- src/stage_04_evaluate.py
- artifacts/features/test.pkl
- src/utils/common.py
- configs/config.yaml
- artifacts/model/model.pkl
metrics:
- scores.json:
cache: false
plots:
- prc.json:
cache: false
x: recall
y: precision
- roc.json:
cache: false
x: fpr
y: tpr
run_plots_command:
cmd: dvc plots diff