[7.x][ML] Fix DF analytics explain API request in docs (#54510) (#54514)

The explain API expects a data frame analytics config
as its request.

Backport of #54410
This commit is contained in:
Dimitris Athanasiou 2020-03-31 18:56:52 +03:00 committed by GitHub
parent 9150e77269
commit 0b25e3b66c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 11 deletions

View File

@ -61,9 +61,8 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics]
[[ml-explain-dfanalytics-request-body]]
==== {api-request-body-title}
`data_frame_analytics_config`::
(Optional, object) Intended configuration of {dfanalytics-job}. Note that `id`
and `dest` don't need to be provided in the context of this API.
A {dataframe-analytics-config} as described in <<put-dfanalytics>>.
Note that `id` and `dest` don't need to be provided in the context of this API.
[[ml-explain-dfanalytics-results]]
@ -87,14 +86,12 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=memory-estimation]
--------------------------------------------------
POST _ml/data_frame/analytics/_explain
{
"data_frame_analytics_config": {
"source": {
"index": "houses_sold_last_10_yrs"
},
"analysis": {
"regression": {
"dependent_variable": "price"
}
"source": {
"index": "houses_sold_last_10_yrs"
},
"analysis": {
"regression": {
"dependent_variable": "price"
}
}
}