explain-data-frame-analytics.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. Explains the following about a {dataframe-analytics-config}:
  10. * field selection: which fields are included or not in the analysis
  11. * 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.
  12. The API accepts an +{request}+ object and returns an +{response}+.
  13. [id="{upid}-{api}-request"]
  14. ==== Explain {dfanalytics} request
  15. The request can be constructed with the id of an existing {dfanalytics-job}.
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-id-request]
  19. --------------------------------------------------
  20. <1> Constructing a new request with the id of an existing {dfanalytics-job}
  21. It can also be constructed with a {dataframe-analytics-config} to explain it before creating it.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-config-request]
  25. --------------------------------------------------
  26. <1> Constructing a new request containing a {dataframe-analytics-config}
  27. include::../execution.asciidoc[]
  28. [id="{upid}-{api}-response"]
  29. ==== Response
  30. The returned +{response}+ contains the field selection and the memory usage estimation.
  31. ["source","java",subs="attributes,callouts,macros"]
  32. --------------------------------------------------
  33. include-tagged::{doc-tests-file}[{api}-response]
  34. --------------------------------------------------
  35. <1> A list where each item explains whether a field was selected for analysis or not
  36. <2> The memory estimation for the {dfanalytics-job}