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-idstringrequired- The unique identifier of the trained model.
--docsstring[]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. --timeoutstring- Controls the amount of time to wait for inference results.
--inference-configstring- The inference configuration updates to apply on the API call
--input-filestring- 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