mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-16 20:30:19 +00:00
This merges the initial work that adds a framework for performing machine learning analytics on data frames. The feature is currently experimental and requires a platinum license. Note that the original commits can be found in the `feature-ml-data-frame-analytics` branch. A new set of APIs is added which allows the creation of data frame analytics jobs. Configuration allows specifying different types of analysis to be performed on a data frame. At first there is support for outlier detection. The APIs are: - PUT _ml/data_frame/analysis/{id} - GET _ml/data_frame/analysis/{id} - GET _ml/data_frame/analysis/{id}/_stats - POST _ml/data_frame/analysis/{id}/_start - POST _ml/data_frame/analysis/{id}/_stop - DELETE _ml/data_frame/analysis/{id} When a data frame analytics job is started a persistent task is created and started. The main steps of the task are: 1. reindex the source index into the dest index 2. analyze the data through the data_frame_analyzer c++ process 3. merge the results of the process back into the destination index In addition, an evaluation API is added which packages commonly used metrics that provide evaluation of various analysis: - POST _ml/data_frame/_evaluate
28 lines
923 B
Plaintext
28 lines
923 B
Plaintext
--
|
|
:api: stop-data-frame-analytics
|
|
:request: StopDataFrameAnalyticsRequest
|
|
:response: StopDataFrameAnalyticsResponse
|
|
--
|
|
[id="{upid}-{api}"]
|
|
=== Stop Data Frame Analytics API
|
|
|
|
The Stop Data Frame Analytics API is used to stop a running {dataframe-analytics-config}.
|
|
It accepts a +{request}+ object and responds with a +{response}+ object.
|
|
|
|
[id="{upid}-{api}-request"]
|
|
==== Stop Data Frame Analytics Request
|
|
|
|
A +{request}+ object requires a {dataframe-analytics-config} id.
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
---------------------------------------------------
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
---------------------------------------------------
|
|
<1> Constructing a new stop request referencing an existing {dataframe-analytics-config}
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
[id="{upid}-{api}-response"]
|
|
==== Response
|
|
|
|
The returned +{response}+ object acknowledges the {dataframe-job} has stopped. |