-
Notifications
You must be signed in to change notification settings - Fork 4
/
example-model.yaml
54 lines (51 loc) · 1.68 KB
/
example-model.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
apiVersion: equinor.com/v1
kind: Model
metadata:
name: gordo-model-name
ownerReferences:
- apiVersion: v1
blockOwnerDeletion: true
controller: true
kind: Gordo
name: test-project-name
uid: 6571b980-8824-4b4f-b87c-639c40ef91e3
spec:
gordo-version: 0.40.0
config:
dataset: |
tags:
- TAG-0
- TAG-2
- TAG-3
target_tag_list:
- TAG-4
- TAG-5
- TAG-6
train_end_date: '2019-03-01T00:00:00+00:20'
train_start_date: '2019-01-01T00:00:00+00:00'
row_filter: "(`TAG-1` > 30) & (`TAG-1` < 40)"
type: TimeSeriesDataset
metadata: |
information: 'Use row filtering and dropping the column inside the pipeline'
evaluation: |
seed: 1234
metrics:
- r2_score
model: |
gordo_components.model.anomaly.diff.DiffBasedAnomalyDetector:
base_estimator:
sklearn.compose.TransformedTargetRegressor:
transformer: sklearn.preprocessing.data.MinMaxScaler
regressor:
sklearn.pipeline.Pipeline:
steps:
- sklearn.compose.ColumnTransformer:
transformers:
- - dropper # Name of this transformer
- drop # Action to perform
- TAG-1 # Column to apply this action to.
remainder: passthrough # What do do with the rest
- sklearn.preprocessing.data.MinMaxScaler
- gordo_components.model.models.KerasAutoEncoder:
kind: feedforward_hourglass
name: rowfilter-drop-column-ff