Loading

stack es ml infer-trained-model cli command

Auth required
elastic stack es ml infer-trained-model \
  --model-id <model-id> \
  --docs <docs> \
  [options]
		

Evaluate a trained model.

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--model-id string required
The unique identifier of the trained model.
--docs string[] required
An array of objects to pass to the model for inference. The objects should contain a fields matching your configured trained model input. Typically, for NLP models, the field name is text_field. Currently, for NLP models, only a single value is allowed.
--timeout string
Controls the amount of time to wait for inference results.
--inference-config string
The inference configuration updates to apply on the API call
--input-file string
path to a JSON file to use as command input
--[no-]dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json

output as JSON