-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdvc.yaml
56 lines (51 loc) · 1.29 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
vars:
- PIPELINE_DIR: pipelines/train
stages:
load_data:
cmd: |
echo "Download Bike Sharing data..."
wget https://archive.ics.uci.edu/ml/machine-learning-databases/00275/Bike-Sharing-Dataset.zip -P data/
echo "Unzip data..."
unzip data/Bike-Sharing-Dataset.zip -d data/
wdir: ../..
outs:
- ${data.raw_data}:
cache: false
extract_data:
cmd: python src/stages/extract_data.py --config=${PIPELINE_DIR}/params.yaml
wdir: ../..
params:
- ${PIPELINE_DIR}/params.yaml:
- extract_data
deps:
- src/stages/extract_data.py
- ${data.raw_data}
outs:
- ${data.train_data}
- ${data.test_data}
train:
cmd: python src/stages/train.py --config=${PIPELINE_DIR}/params.yaml
wdir: ../..
params:
- ${PIPELINE_DIR}/params.yaml:
- train
deps:
- src/stages/train.py
- ${data.train_data}
outs:
- ${train.model_path}
evaluate:
cmd: python src/stages/evaluate.py --config=${PIPELINE_DIR}/params.yaml --pdir=${PIPELINE_DIR}
wdir: ../..
params:
- ${PIPELINE_DIR}/params.yaml:
- evaluate
deps:
- src/stages/evaluate.py
- ${data.test_data}
- ${data.train_data}
- ${train.model_path}
outs:
- ${data.reference_data}
metrics:
- ../../reports/train/metrics.json