-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ML] Add a model memory estimation endpoint for anomaly detection #53507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Add a model memory estimation endpoint for anomaly detection #53507
Conversation
This PR completes the implementation of the model memory estimation endpoint: POST _ml/anomaly_detectors/estimate_model_memory Closes elastic#53219
Pinging @elastic/ml-core (:ml) |
WIP as there are still many TODOs |
[role="xpack"] | ||
[testenv="platinum"] | ||
[[ml-estimate-model-memory]] | ||
=== Estimate {anomaly-jobs} Model Memory API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=== Estimate {anomaly-jobs} Model Memory API | |
=== Estimate {anomaly-jobs} model memory API |
<titleabbrev>Estimate Model Memory</titleabbrev> | ||
++++ | ||
|
||
Estimates the model memory an analysis config is likely to need given |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to work the concept of jobs into this intro:
Estimates the model memory an analysis config is likely to need given | |
Estimates the model memory an {anomaly-job} is likely to need based on analysis configuration details and |
[[ml-estimate-model-memory-desc]] | ||
==== {api-description-title} | ||
|
||
This API enables you to estimate the model memory and {anomaly-job} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API enables you....
I think this sentence repeats what we've already said in the intro so unless we have more info to add we can omit this section.
[[ml-estimate-model-memory-request-body]] | ||
==== {api-request-body-title} | ||
|
||
For a list of the properties that you can specify in the `analysis_config` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a list of the properties that you can specify in the `analysis_config` | |
`analysis_config`:: (Required, object) For a list of the properties that you can specify in the `analysis_config` |
|
||
For a list of the properties that you can specify in the `analysis_config` | ||
component of the body of this API, see <<put-analysisconfig>>. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need descriptions of the other required objects too:
`max_bucket_cardinality`:: (Required, object) TBD | |
`overall_cardinality`:: (Required, object) TBD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
|
||
public void setAnalysisConfig(AnalysisConfig analysisConfig) { | ||
this.analysisConfig = Objects.requireNonNull(analysisConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this setter and making this.analysisConfig final would be more in style with the HLRC code
[id="{upid}-{api}"] | ||
=== Estimate {anomaly-job} Model Memory API | ||
|
||
Estimate the model memory an analysis config is likely to need for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing 'the'? '... for the'
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
Outdated
Show resolved
Hide resolved
Co-Authored-By: Lisa Cawley <[email protected]>
@elasticmachine update branch |
A new endpoint for estimating anomaly detection job model memory requirements: POST _ml/anomaly_detectors/estimate_model_memory Backport of elastic#53507
This PR completes the implementation of the model
memory estimation endpoint:
POST _ml/anomaly_detectors/estimate_model_memory
Closes #53219
Preview: