-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10_trained_model.yml
38 lines (38 loc) · 995 Bytes
/
10_trained_model.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
---
requires:
serverless: true
stack: true
---
"Trained models":
- do:
ml.put_trained_model:
model_id: model-1
body: >
{
"description": "empty model for tests",
"tags": ["regression", "tag1"],
"input": {"field_names": ["field1", "field2"]},
"inference_config": {"regression": {}},
"definition": {
"preprocessors": [],
"trained_model": {
"tree": {
"feature_names": ["field1", "field2"],
"tree_structure": [
{"node_index": 0, "leaf_value": 1}
],
"target_type": "regression"
}
}
}
}
- match: { model_id: model-1 }
- do:
ml.get_trained_models:
model_id: "*"
size: 10
- gt: { count: 0 }
- do:
ml.delete_trained_model:
model_id: "model-1"
- match: { acknowledged: true }