-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-target.yaml
55 lines (48 loc) · 1.48 KB
/
pipeline-target.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
meta:
# import_tasks_from: features.yaml
# Extract upstream dependencies from source code. If False, tasks
# must declare dependencies using the "upstream" key
extract_upstream: False
# Extract product from source code. If False, tasks must have a "product" key
extract_product: False
executor: serial
tasks:
- source: func.util.data_transform
name: data-transform
upstream: null
product: products/data/data.csv
params:
file_path: '{{root}}/{{DATA_FILEPATH}}'
- source: scripts/features.py
name: features
upstream: [data-transform]
product:
data: products/data/features.csv
nb: products/reports/features.ipynb
params:
features: '{{features_odds}}'
target: '{{TARGET}}'
- source: scripts/exploratory.py
name: exploratory
upstream: [ features ]
product:
nb: products/reports/exploratory.ipynb
model: products/models/exploratory.pt
params:
target: '{{TARGET}}'
odds_cols: '{{ODDS_COLS}}'
random_seed: '{{RANDOM_SEED}}'
test_ratio: 0.2
- source: scripts/nested_cv.py
name: nested-cv
upstream: [ features ]
product:
nb: products/reports/nested_cv.ipynb
model: products/models/nested_cv.pt
params:
target: '{{TARGET}}'
odds_cols: '{{ODDS_COLS}}'
random_seed: '{{RANDOM_SEED}}'
test_ratio: 0.2
inner_splits: 2
outer_splits: 5