-
Notifications
You must be signed in to change notification settings - Fork 0
/
dvc.yaml
68 lines (65 loc) · 1.94 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
# Type dvc-help in this file and hit enter to get more information on how the extension can help to setup pipelines
stages:
Features:
cmd: python src/stages/features.py --config=params.yaml
deps:
- src/stages/features.py
params:
- features.fft_window_func
- features.fft_window_size
- features.fft_window_num
- features.names
outs:
- Data/raw/dataset.csv
Data: # delete ceratain level from training set
cmd: python src/stages/del_load.py --config=params.yaml
deps:
- src/stages/del_load.py
params:
- data_split.load_exclude
- features.fft_window_func
- features.fft_window_size
- features.fft_window_num
- features.names
outs:
- Data/processed/X_train.csv
- Data/processed/y_train.csv
- Data/processed/X_test.csv
- Data/processed/y_test.csv
- Data/processed/load_train.csv
- Data/processed/load_test.csv
Training: # model training
cmd: python src/stages/train.py --config=params.yaml
deps:
- src/stages/train.py
- Data/processed/X_train.csv
- Data/processed/y_train.csv
- Data/processed/X_test.csv
- Data/processed/y_test.csv
- Data/processed/load_train.csv
- Data/processed/load_test.csv
params:
- train.estimator_name
- data_split.load_exclude
- features.fft_window_func
- features.fft_window_size
- features.fft_window_num
- features.names
metrics:
- reports/best_hp.json
Evaluation: # evaluate model and save plots/reports
always_changed: True
cmd: python src/stages/evaluate.py --config=params.yaml
deps:
- src/stages/evaluate.py
- Models/
- Data/processed/X_test.csv
- Data/processed/y_test.csv
plots:
- reports/confusion_matrix.png
- reports/confusion_matrix_data.csv:
template: confusion
x: predicted
y: y_true
metrics:
- reports/metrics.json