-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdvc.yaml
73 lines (68 loc) · 1.81 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
# implement dvc pipeline
stages:
load_dataset:
cmd: python src/data/load_dataset.py
deps:
- ./src/data/load_dataset.py
params:
- load_dataset.bucket
- load_dataset.raw_data
- load_dataset.file_name
- load_dataset.aws_file_name
outs:
- .${load_dataset.raw_data}/${load_dataset.file_name}
build_features:
cmd: python src/features/build_features.py
deps:
- ./src/features/build_features.py
- .${load_dataset.raw_data}/${load_dataset.file_name}
params:
- build_features.file_path
- build_features.vectorizer_type
- build_features.n_gram
- build_features.max_features
outs:
- ./data/processed/clean_data.csv
train_model:
cmd: python src/models/train_model.py
deps:
- ./src/models/train_model.py
- ./data/processed/clean_data.csv
params:
- build_features.vectorizer_type
- build_features.n_gram
- build_features.max_features
- train_model.repo_owner
- train_model.repo_name
- train_model.model_name
- train_model.experiment
- train_model.experiment_name
- train_model.experiment_description
- train_model.hyperparams
- train_model.test_size
outs:
- ./models/experiments/:
persist: true
- ./figures/training/:
persist: true
- ./vectorizer/:
persist: true
tune_model:
cmd: python src/models/tune_model.py
deps:
- ./src/models/tune_model.py
- ./data/processed/clean_data.csv
params:
- train_model.test_size
- train_model.repo_name
- train_model.repo_owner
- tune_model.n_trials
- tune_model.experiment_name
- tune_model.experiment_description
- tune_model.max_features
- tune_model.ngram_range
- tune_model.vectorizer_type
outs:
- ./models/fine_tunned/:
persist: true
- ./figures/tunning/