explain-data-frame-analytics.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --
  2. :api: explain-data-frame-analytics
  3. :request: ExplainDataFrameAnalyticsRequest
  4. :response: ExplainDataFrameAnalyticsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Explain {dfanalytics} API
  9. beta::[]
  10. Explains the following about a {dataframe-analytics-config}:
  11. * field selection: which fields are included or not in the analysis
  12. * memory estimation: how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for `model_memory_limit` setting later on.
  13. The API accepts an +{request}+ object and returns an +{response}+.
  14. [id="{upid}-{api}-request"]
  15. ==== Explain {dfanalytics} request
  16. The request can be constructed with the id of an existing {dfanalytics-job}.
  17. ["source","java",subs="attributes,callouts,macros"]
  18. --------------------------------------------------
  19. include-tagged::{doc-tests-file}[{api}-id-request]
  20. --------------------------------------------------
  21. <1> Constructing a new request with the id of an existing {dfanalytics-job}
  22. It can also be constructed with a {dataframe-analytics-config} to explain it before creating it.
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-config-request]
  26. --------------------------------------------------
  27. <1> Constructing a new request containing a {dataframe-analytics-config}
  28. include::../execution.asciidoc[]
  29. [id="{upid}-{api}-response"]
  30. ==== Response
  31. The returned +{response}+ contains the field selection and the memory usage estimation.
  32. ["source","java",subs="attributes,callouts,macros"]
  33. --------------------------------------------------
  34. include-tagged::{doc-tests-file}[{api}-response]
  35. --------------------------------------------------
  36. <1> A list where each item explains whether a field was selected for analysis or not
  37. <2> The memory estimation for the {dfanalytics-job}