Skip to content

Commit

Permalink
[7.x][ML] Update console autocomplete for ML data frame evaluate API (#…
Browse files Browse the repository at this point in the history
…83151) (#83527)

We have added evaluation for all types of data frame analysis
since the last update. This commit updates autocomplete accordingly.

Backport of #83151
  • Loading branch information
dimitris-athanasiou authored Nov 17, 2020
1 parent b596ed9 commit 46b9db3
Showing 1 changed file with 73 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,83 @@
{
"ml.evaluate_data_frame": {
"data_autocomplete_rules": {
"index": "",
"evaluation": {
"actual_field": "FIELD_NAME",
"predicted_probability_field": "FIELD_NAME",
"metrics": {
"auc_roc": {
"include_curve": true
"__one_of": [
{
"outlier_detection": {
"__template": {
"actual_field": "FIELD_NAME",
"predicted_probability_field": "FIELD_NAME"
},
"actual_field": "FIELD_NAME",
"predicted_probability_field": "FIELD_NAME",
"metrics": {
"auc_roc": {
"include_curve": false
},
"precision": {
"at": []
},
"recall": {
"at": []
},
"confusion_matrix": {
"at": []
}
}
}
},
"precision": {
"at": []
{
"regression": {
"__template": {
"actual_field": "FIELD_NAME",
"predicted_field": "FIELD_NAME"
},
"actual_field": "FIELD_NAME",
"predicted_field": "FIELD_NAME",
"metrics": {
"mse": {},
"msle": {
"offset": 1.0
},
"r_squared": {},
"huber": {
"delta": 1.0
}
}
}
},
"recall": {
"at": []
},
"confusion_matrix": {
"at": []
{
"classification": {
"__template": {
"actual_field": "FIELD_NAME",
"predicted_field": "FIELD_NAME",
"top_classes_field": "FIELD_NAME"
},
"actual_field": "FIELD_NAME",
"predicted_field": "FIELD_NAME",
"top_classes_field": "FIELD_NAME",
"metrics": {
"accuracy": {},
"precision": {},
"recall": {},
"multiclass_confusion_matrix": {
"size": 10
},
"precision": {},
"recall": {},
"auc_roc": {
"__template": {
"class_name": ""
},
"class_name": "",
"include_curve": false
}
}
}
}
}
]
}
}
}
Expand Down

0 comments on commit 46b9db3

Please sign in to comment.