Files
elasticsearch-js/docs/reference-ml-infer_trained_model.asciidoc

77 lines
4.0 KiB
Plaintext

[[reference-ml-infer_trained_model]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.ml.inferTrainedModel]]
=== client.ml.inferTrainedModel
Evaluate a trained model.
{ref}/infer-trained-model.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(MlInferTrainedModelRequest, options?): Promise<MlInferTrainedModelResponse>
----
[discrete]
==== MlInferTrainedModelRequest
[pass]
++++
<pre>
++++
interface MlInferTrainedModelRequest extends <<RequestBase>> {
model_id: <<Id>>
timeout?: <<Duration>>
docs: Record<string, any>[]
inference_config?: <<MlInferenceConfigUpdateContainer>>
}
[pass]
++++
</pre>
++++
[discrete]
==== MlInferTrainedModelResponse
[pass]
++++
<pre>
++++
interface MlInferTrainedModelResponse {
inference_results: <<MlInferenceResponseResult>>[]
}
[pass]
++++
</pre>
++++