-
Notifications
You must be signed in to change notification settings - Fork 1
/
dvc.yaml
228 lines (216 loc) · 6.75 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
stages:
profile:
cmd: python3 src/profiling.py assets/data/raw/
deps:
- assets/data/raw
- src/profiling.py
- src/profile.yaml
- src/config.py
outs:
- assets/profile
params:
- profile.dataset
clean:
cmd: python3 src/clean.py assets/data/raw/
deps:
- assets/data/raw
- assets/profile
- src/clean.py
- src/config.py
outs:
- assets/data/cleaned
- assets/features/output_columns.csv
- assets/features/removable_features.csv
params:
- clean.target
- clean.classification
- clean.onehot_encode_target
- clean.combine_files
- clean.percentage_zeros_threshold
- clean.correlation_metric
- clean.input_max_correlation_threshold
featurize:
cmd: python3 src/featurize.py assets/data/cleaned/
deps:
- assets/data/cleaned
- assets/features/output_columns.csv
- src/featurize.py
- src/config.py
outs:
- assets/data/featurized
- assets/features/input_columns.csv
params:
- featurize.variables_to_include
- featurize.use_all_engineered_features_on_all_variables
- featurize.add_sum
- featurize.add_gradient
- featurize.add_mean
- featurize.add_maximum
- featurize.add_minimum
- featurize.add_min_max_range
- featurize.add_slope
- featurize.add_slope_sin
- featurize.add_slope_cos
- featurize.add_standard_deviation
- featurize.add_variance
- featurize.add_peak_frequency
- featurize.rolling_window_size_sum
- featurize.rolling_window_size_mean
- featurize.rolling_window_size_max_min
- featurize.rolling_window_size_standard_deviation
- featurize.remove_features
- featurize.target_min_correlation_threshold
- clean.target
split:
cmd: python3 src/split.py assets/data/featurized/
deps:
- assets/data/featurized
- src/split.py
- src/config.py
outs:
- assets/data/split
params:
- split.train_split
- split.shuffle_files
- split.shuffle_samples_before_split
scale:
cmd: python3 src/scale.py assets/data/split/
deps:
- assets/data/split
- assets/features/output_columns.csv
- src/scale.py
- src/config.py
outs:
- assets/data/scaled
- assets/scalers/input_scaler.z
- assets/scalers/output_scaler.z
params:
- clean.classification
- scale.input_method
- scale.output_method
sequentialize:
cmd: python3 src/sequentialize.py assets/data/scaled/
deps:
- assets/data/scaled
- assets/features/output_columns.csv
- src/sequentialize.py
- src/preprocess_utils.py
- src/config.py
outs:
- assets/data/sequentialized
params:
- clean.classification
- sequentialize.window_size
- sequentialize.overlap
- sequentialize.target_size
- sequentialize.shuffle_samples
- sequentialize.future_predict
- train.learning_method
combine:
cmd: python3 src/combine.py assets/data/sequentialized/
deps:
- assets/data/sequentialized
- src/combine.py
- src/config.py
outs:
- assets/data/combined
train:
cmd: python3 src/train.py assets/data/combined/train.npz
deps:
- assets/data/combined
- assets/features/output_columns.csv
- src/train.py
- src/neural_networks.py
- src/config.py
outs:
- assets/models
# - assets/metrics/emissions_training.json
params:
- clean.classification
- train.seed
- train.learning_method
- train.ensemble
- train.hyperparameter_tuning
- train.n_epochs
- train.early_stopping
- train.patience
- train.activation_function
- train.batch_size
- train.n_layers
- train.n_neurons
- train.dropout
- train.n_flattened_layers
- train.n_flattened_nodes
- train.kernel_size
- train.maxpooling
- train.maxpooling_size
- train.unit_type
- train.ff_dim
- train.n_transformer_blocks
- train.n_heads
- train.head_size
metrics:
- assets/metrics/emissions_training.json
evaluate:
cmd: python3 src/evaluate.py assets/models/ assets/data/combined/train.npz assets/data/combined/test.npz
deps:
- assets/data/combined/test.npz
- assets/features/output_columns.csv
- assets/models/
- src/evaluate.py
- src/config.py
outs:
- assets/plots/prediction.html
# - assets/predictions/predictions.csv
# - assets/predictions/true_values.csv
params:
- clean.classification
- train.ensemble
- evaluate.show_inputs
- evaluate.performance_metric
- evaluate.threshold_for_ensemble_models
- evaluate.dropout_uncertainty_estimation
- evaluate.uncertainty_estimation_sampling_size
metrics:
- assets/metrics/metrics.json
- assets/metrics/emissions_inference.json
explain:
cmd: python3 src/explain.py assets/models/model.h5 assets/data/combined/train.npz assets/data/combined/test.npz
deps:
- assets/data/combined/test.npz
- assets/features/input_columns.csv
- assets/models/
- assets/metrics/metrics.json
- src/explain.py
- src/config.py
outs:
- assets/features/feature_importances.csv
- assets/features/feature_importances_adequate_models.csv
params:
- train.ensemble
# Number of samples to use for generating shap values
- explain.number_of_background_samples
- explain.number_of_summary_samples
- explain.seed
- explain.explanation_method
- explain.generate_explanations
combine_explanations:
cmd: python3 src/combine_explanations.py
deps:
- assets/features/feature_importances_adequate_models.csv
- assets/adequate_models/adequate_models.json
- src/combine_explanations.py
- src/config.py
params:
- combine_explanations.combination_method
- combine_explanations.weighting_method
- combine_explanations.agreement_method
# llm:
# cmd: python3 src/llm.py
# deps:
# - src/llm.py
# - assets/output/shap_importances.csv
# outs:
# - assets/output/llm.txt
# params:
# - llm.dataset_description