This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mlp_simple.train.yml
113 lines (109 loc) · 2.58 KB
/
mlp_simple.train.yml
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
name: mlp_simple
source:
name: mlpipe.dsl.sources.EmpaCsvSourceAdapter
pathToFile: data/meeting_room_sensors_201807_201907.csv
fields:
- 3200000 as TempAussen
- 40210012 as TempInnen
- 40210002 as Zuluft
- 40210005 as Abluft
- 40210013 as CO2
- 40210148 as Präsenz
pipelinePrimary:
- name: mlpipe.dsl.processors.SeedSetup
numpy: 1
tensorflow: 1
- name: mlpipe.dsl.processors.Resampler
freq: 1T
- name: mlpipe.dsl.processors.Interpolation
method: linear
max_consecutive_interpolated_value: 15
- name: mlpipe.dsl.processors.TimeExtractor
extract: hour
outputField: Stunden
- name: mlpipe.dsl.processors.TimeExtractor
extract: weekday
outputField: Wochentag
- name: mlpipe.dsl.aggregators.Mean
sequence: 15
generate:
- inputField: CO2
outputField: CO2_Mean
- inputField: TempInnen
outputField: TempInnen_Mean
- inputField: Zuluft
outputField: Zuluft_Mean
- name: mlpipe.dsl.aggregators.Trend
sequence: 15
generate:
- inputField: CO2
outputField: CO2_Trend
- inputField: TempInnen
outputField: TempInnen_Trend
- inputField: Zuluft
outputField: Zuluft_Trend
pipelineSecondary:
- name: mlpipe.dsl.processors.Scaler
scaler: sklearn.preprocessing.RobustScaler
fields:
- TempAussen
- TempInnen
- Zuluft
- Abluft
- CO2
- CO2_Mean
- TempInnen_Mean
- Zuluft_Mean
- CO2_Trend
- TempInnen_Trend
- Zuluft_Trend
- name: mlpipe.dsl.processors.RangeEncoder
value_from: 0
value_to: 24
generate:
- inputField: Stunden
outputField: StundenOneHot
- name: mlpipe.dsl.processors.RangeEncoder
value_from: 0
value_to: 7
generate:
- inputField: Wochentag
outputField: WochentagOneHot
- name: mlpipe.dsl.processors.NanRemover
- name: mlpipe.dsl.processors.Shuffle
model:
input:
- TempAussen
- TempInnen
- Zuluft
- Abluft
- CO2
- CO2_Mean
- TempInnen_Mean
- Zuluft_Mean
- CO2_Trend
- TempInnen_Trend
- Zuluft_Trend
- REGEX:StundenOneHot\$.*
- REGEX:WochentagOneHot\$.*
target: Präsenz
testRatio: .1
sequentialModel:
- name: keras.layers.Dense
units: 200
activation: relu
- name: keras.layers.Dense
units: 50
activation: relu
- name: keras.layers.Dense
units: 1
activation: sigmoid
compile:
optimizer: Adam
loss: binary_crossentropy
metrics:
- accuracy
fit:
batch_size: 4000
epochs: 50
class_weight: auto