-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathede_config.yaml
331 lines (307 loc) · 8.47 KB
/
ede_config.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
Connector:
# ESEndpoint: "85.120.206.59" # Elasticsearch endoint
PREndpoint: 10.9.8.136 # Prometheus endoint
# PREndpoint: hal720m.sage.ieat.ro
Dask:
SchedulerEndpoint: "local" # todo if not local give dask scheduler endoint
Scale: 3
SchedulerPort: 8787 # todo, set default to 8787, optional
EnforceCheck: False
MPort: 9200 # Moitoring port
KafkaEndpoint: 10.9.8.136
KafkaPort: 9092
KafkaTopic: edetopic
# Query: { "query": 'node_disk_written_bytes_total[5m]'}
Query: {"query": '{__name__=~"node.+"}[1m]'}
MetricsInterval: "1m" # Metrics datapoint interval definition
QSize: 0 # todo check if query size is needed
Index: time
QDelay: "10s" # Polling period for metrics fetching
# Local: /Users/Gabriel/Documents/workspaces/Event-Detection-Engine/data/demo_data.csv # Define the path to the local file for training
Mode:
Training: True
Detect: False
Validate: False
#Filter:
# Columns: # Which columns remain
# - "col1"
# - "col2"
# - "col4"
# Rows:
# ld: 145607979
# gd: 145607979
# DColumns: # Which columns to delete
# - "col1"
# - "col2"
# - "col3"
Fillna: True # fill none values with 0
Dropna: True # delete columns woth none values
#Augmentation:
# Scaler: # if not used set to false
# StandardScaler:
# copy: True
# with_mean: True
# with_std: true
# Operations:
# STD:
# - cpu_load1:
# - node_load1_10.211.55.101:9100
# - node_load1_10.211.55.102:9100
# - node_load1_10.211.55.103:9100
# - memory:
# - node_memory_Active_anon_bytes_10.211.55.101:9100
# - node_memory_Active_anon_bytes_10.211.55.101:9100
# - node_memory_Active_anon_bytes_10.211.55.101:9100
# Mean:
# - network_flags:
# - node_network_flags_10.211.55.101:9100
# - node_network_flags_10.211.55.102:9100
# - node_network_flags_10.211.55.103:9100
# - network_out:
# - node_network_mtu_bytes_10.211.55.101:9100
# - node_network_mtu_bytes_10.211.55.102:9100
# - node_network_mtu_bytes_10.211.55.103:9100
# Median:
# - memory_file:
# - node_memory_Active_file_bytes_10.211.55.101:9100
# - node_memory_Active_file_bytes_10.211.55.102:9100
# - node_memory_Active_file_bytes_10.211.55.103:9100
# - memory_buffered:
# - node_memory_Buffers_bytes_10.211.55.101:9100
# - node_memory_Buffers_bytes_10.211.55.102:9100
# - node_memory_Buffers_bytes_10.211.55.103:9100
# RemoveFiltered: True
# Method: !!python/object/apply:edeuser.user_methods.wrapper_add_columns # user defined operation
# kwds:
# columns: !!python/tuple [node_load15_10.211.55.101:9100, node_load15_10.211.55.102:9100]
# column_name: sum_load15
# Categorical:
# - col1
# - col2
# OH: True
# Analysis example
Analysis:
Methods:
- Method: !!python/object/apply:edeuser.user_methods.wrapper_analysis_corr
kwds:
name: Pearson1
annot: False
cmap: RdBu_r
columns:
- node_load1_10.211.55.101:9100
- node_load1_10.211.55.102:9100
- node_load1_10.211.55.103:9100
- node_memory_Cached_bytes_10.211.55.101:9100
- node_memory_Cached_bytes_10.211.55.102:9100
- node_memory_Cached_bytes_10.211.55.103:9100
- time
location: /Users/Gabriel/Documents/workspaces/Event-Detection-Engine/edeuser/analysis
- Method: !!python/object/apply:edeuser.user_methods.wrapper_analysis_plot
kwds:
name: line1
columns:
- node_load1_10.211.55.101:9100
- node_load1_10.211.55.102:9100
- node_load1_10.211.55.103:9100
- time
location: /Users/Gabriel/Documents/workspaces/Event-Detection-Engine/edeuser/analysis
Solo: True
# User defined clustering custom
#Training:
# Type: clustering
# Method: !!python/object/apply:edeuser.user_methods.user_iso
# kwds:
# n_estimators: 100
# contamination: auto
# max_features: 1
# n_jobs: 2
# warm_start: False
# random_state: 45
# bootstrap: True
# verbose: True
# max_samples: 1
# Export: asp
# User defined clustering example sklearn
#Training:
# Type: clustering
# Method: !!python/object/apply:sklearn.ensemble._iforest.IsolationForest # DONT forger ../apply
# _sklearn_version: '0.22.1'
# behaviour: deprecated
# n_estimators: 100
# contamination: auto
# max_features: 1
# n_jobs: 2
# warm_start: False
# random_state: 45
# bootstrap: True
# verbose: True
# max_samples: 1
# Export: asp
# Clustering example
#Training:
# Type: clustering
# Method: isoforest
# Export: asp2
# MethodSettings:
# n_estimators: 10
# max_samples: 10
# contamination: 0.1
# verbose: True
# bootstrap: True
# Classification example
#Training:
# Type: classification
## Method: randomforest
# Method: !!python/object/apply:sklearn.ensemble.AdaBoostClassifier # DONT forger ../apply
# _sklearn_version: '0.22.1'
# n_estimators: 100
# learning_rate: 1
# algorithm: SAMME.R
# Target: target
# Export: aspc
# ValidRatio: 0.2
# TrainScore: True # expensive if set to false only test scores are computed
# ReturnEstimators: True
## CV: 5
## CV:
## Type: StratifiedKFold # user defined all from sklearn
## Params:
## n_splits: 5
## shuffle: True
## random_state: 5
# MethodSettings:
# n_estimators: 10
# criterion: gini
# max_features: auto
# max_depth: 3
# min_samples_split: 2
# min_samples_leaf: 1
# min_weight_fraction_leaf: 0
# bootstrap: True
# n_jobs: -1
# random_state: 42
# verbose: 1
# Scorers:
# Scorer_list:
# - Scorer:
# Scorer_name: AUC
# skScorer: roc_auc
# - Scorer:
# Scorer_name: Jaccard_Index
# skScorer: jaccard
# - Scorer:
# Scorer_name: Balanced_Acc
# skScorer: balanced_accuracy
# User_scorer1: f1_score # key is user defined, can be changed same as Scorer_name
# For HPO methods
#Training:
# Type: hpo
# HPOMethod: Random # random, grid, bayesian, tpot
# HPOParam:
# n_iter: 2
# n_jobs: -1
# refit: Balanced_Acc # if multi metric used, refit should be metric name, mandatory
# verbose: True
# Method: randomforest
# ParamDistribution:
# n_estimators:
# - 10
# - 100
# max_depth:
# - 2
# - 3
# Target: target
# Export: aspc
## CV: 8
# CV:
# Type: StratifiedKFold # user defined all from sklearn
# Params:
# n_splits: 5
# shuffle: True
# random_state: 5
# Scorers:
# Scorer_list:
# - Scorer:
# Scorer_name: AUC
# skScorer: roc_auc
# - Scorer:
# Scorer_name: Jaccard_Index
# skScorer: jaccard
# - Scorer:
# Scorer_name: Balanced_Acc
# skScorer: balanced_accuracy
# User_scorer1: f1_score # key is user defined, can be changed same as Scorer_name
# TPOT Optimizer
Training:
Type: tpot
TPOTParam:
generations: 2
population_size: 2
offspring_size: 2
mutation_rate: 0.9
crossover_rate: 0.1
scoring: balanced_accuracy # Scoring different from HPO check TPOT documentation
max_time_mins: 1
max_eval_time_mins: 5
random_state: 42
n_jobs: -1
verbosity: 2
config_dict: TPOT light # "TPOT light", "TPOT MDR", "TPOT sparse" or None
use_dask: True
Target: target
Export: aspc
# CV: 8
CV:
Type: StratifiedKFold # user defined all from sklearn
Params:
n_splits: 5
shuffle: True
random_state: 5
Detect:
Method: RandomForest
Type: classification
Load: aspc
# Scaler: StandardScaler
Point:
Memory:
cached:
gd: 231313
ld: 312334
buffered:
gd: 231313
ld: 312334
used:
gd: 231313
ld: 312334
Load:
shortterm:
gd: 231313
ld: 312334
midterm:
gd: 231313
ld: 312334
Network:
tx:
gd: 231313
ld: 312334
rx:
gd: 231313
ld: 312334
#Point:
# Memory: cached:gd:231313;buffered:ld:312123;used:ld:12313;free:gd:23123
# Load: shortterm:gd:2.0;midterm:ld:0.1;longterm:gd:1.0
# Network: tx:gd:34344;rx:ld:323434
# Not yet Implemented
#Validation:
# DataSource: /path/to/data # if datasource is not defined use default from data connector, last column is ground truth named "Target"
# Treashold: 0.2 # improvement percent
# Models:
# - m1
# - m2
Misc:
heap: 512m
checkpoint: False
delay: 15s
interval: 30m
resetindex: False
point: False