-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexplain_data_frame_analytics.yml
86 lines (81 loc) · 2.27 KB
/
explain_data_frame_analytics.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
---
requires:
stack: true
serverless: false
---
setup:
- do:
indices.create:
index: index-source
body:
mappings:
properties:
x:
type: float
y:
type: float
- do:
index:
index: index-source
refresh: true
body: { x: 1, y: 10 }
- match: { result: "created" }
---
teardown:
- do:
indices.delete:
index: index-source
---
"ml.explain_data_frame_analytics":
- do:
ml.explain_data_frame_analytics:
body:
source: { index: "index-source" }
analysis: { outlier_detection: {} }
- match:
memory_estimation.expected_memory_without_disk: / \d[km]b /
- match:
memory_estimation.expected_memory_with_disk: / \d[km]b /
- length: { field_selection: 2 }
- match: { field_selection.0.name: "x" }
- match: { field_selection.0.mapping_types: ["float"] }
- match: { field_selection.0.is_included: true }
- match: { field_selection.0.is_required: false }
- match: { field_selection.0.feature_type: "numerical" }
- is_false: field_selection.0.reason
- match: { field_selection.1.name: "y" }
- match: { field_selection.1.mapping_types: ["float"] }
- match: { field_selection.1.is_included: true }
- match: { field_selection.1.is_required: false }
- match: { field_selection.1.feature_type: "numerical" }
- is_false: field_selection.1.reason
- do:
index:
index: index-source
refresh: true
body: { x: 2, y: 20 }
- match: { result: "created" }
- do:
ml.explain_data_frame_analytics:
body:
source: { index: "index-source" }
analysis: { outlier_detection: {} }
- match:
memory_estimation.expected_memory_without_disk: / \d[km]b /
- match:
memory_estimation.expected_memory_with_disk: / \d[km]b /
- do:
index:
index: index-source
refresh: true
body: { x: 3, y: 30 }
- match: { result: "created" }
- do:
ml.explain_data_frame_analytics:
body:
source: { index: "index-source" }
analysis: { outlier_detection: {} }
- match:
memory_estimation.expected_memory_without_disk: / \d[km]b /
- match:
memory_estimation.expected_memory_with_disk: / \d[km]b /