66 lines
4.0 KiB
Plaintext
66 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
|
|
|
|
Evaluate a trained model.
|
|
|
|
{ref}/infer-trained-model.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(MlInferTrainedModelRequest, options?): Promise<MlInferTrainedModelResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `MlInferTrainedModelRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface MlInferTrainedModelRequest extends <<shared-type-request-base, RequestBase>> {
|
|
model_id: <<shared-type-id, Id>>
|
|
timeout?: <<shared-type-duration, Duration>>
|
|
docs: Record<string, any>[]
|
|
inference_config?: MlInferenceConfigUpdateContainer
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `MlInferTrainedModelResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
interface MlInferTrainedModelResponse {
|
|
inference_results: MlInferenceResponseResult[]
|
|
}
|
|
----
|
|
|