-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdvc.yaml
59 lines (53 loc) · 1.72 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
stages:
data_ingestion:
cmd: python src/mlproject/pipeline/stage_01_data_ingestion.py
deps:
- src/mlproject/pipeline/stage_01_data_ingestion.py
- config/config.yaml
outs:
- artifacts/data_ingestion/ai4i2020.csv
data_validation:
cmd: python src/mlproject/pipeline/stage_02_data_validation.py
deps:
- src/mlproject/pipeline/stage_02_data_validation.py
- config/config.yaml
- artifacts/data_ingestion/ai4i2020.csv
outs:
- artifacts/data_validation/status.txt
transformation:
cmd: |
if grep -q "True" artifacts/data_validation/status.txt; then
python src/mlproject/pipeline/stage_03_data_transformation.py
else
echo "Data validation failed. Skipping transformation stage."
fi
deps:
- src/mlproject/pipeline/stage_03_data_transformation.py
- config/config.yaml
- artifacts/data_ingestion/ai4i2020.csv
outs:
- artifacts/data_transformation/train.csv
- artifacts/data_transformation/test.csv
training:
cmd: python src/mlproject/pipeline/stage_04_model_trainer.py
deps:
- src/mlproject/pipeline/stage_04_model_trainer.py
- config/config.yaml
- artifacts/data_transformation/train.csv
- params.yaml
params:
- LogisticRegression
outs:
- artifacts/model_trainer/model.joblib
evaluation:
cmd: python src/mlproject/pipeline/stage_05_model_evaluation.py
deps:
- src/mlproject/pipeline/stage_05_model_evaluation.py
- config/config.yaml
- params.yaml
- artifacts/data_transformation/test.csv
- artifacts/model_trainer/model.joblib
params:
- LogisticRegression
outs:
- artifacts/model_evaluation/metrics.json