原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/get-ml-info.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/get-ml-info.html
本地英文版地址: ../en/get-ml-info.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
Get machine learning info APIedit
Returns defaults and limits used by machine learning.
Requestedit
GET _ml/info
Prerequisitesedit
-
If the Elasticsearch security features are enabled, you must have
monitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API. Themachine_learning_admin
andmachine_learning_user
roles provide these privileges. See Security privileges and Built-in roles.
Descriptionedit
This endpoint is designed to be used by a user interface that needs to fully understand machine learning configurations where some options are not specified, meaning that the defaults should be used. This endpoint may be used to find out what those defaults are.
Examplesedit
The endpoint takes no arguments:
GET _ml/info
This is a possible response:
{ "defaults" : { "anomaly_detectors" : { "categorization_analyzer" : { "tokenizer" : "ml_classic", "filter" : [ { "type" : "stop", "stopwords" : [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "GMT", "UTC" ] } ] }, "model_memory_limit" : "1gb", "categorization_examples_limit" : 4, "model_snapshot_retention_days" : 1 }, "datafeeds" : { "scroll_size" : 1000 } }, "upgrade_mode": false, "native_code" : { "version": "7.0.0", "build_hash": "99a07c016d5a73" }, "limits" : { } }