elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model_deployment.rb
# Evaluate a trained model.
# This functionality is Experimental and may be changed or removed
# completely in a future release. Elastic will take a best effort approach
# to fix any issues, but experimental features are not subject to the
# support SLA of official GA features.
#
# @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
# @option arguments [Time] :timeout Controls the amount of time to wait for inference results.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The docs to apply inference on (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/infer-trained-model-deployment.html
#
Evaluate a trained model.
This functionality is Experimental and may be changed or removed
completely in a future release. Elastic will take a best effort approach
to fix any issues, but experimental features are not subject to the
support SLA of official GA features.
Evaluate a trained model . This functionality is Experimental and may be changed or removed completely in a future release . Elastic will take a best effort approach to fix any issues but experimental features are not subject to the support SLA of official GA features .
def infer_trained_model_deployment(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _model_id = arguments.delete(:model_id)
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_infer"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def infer_trained_model_deployment ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'model_id' missing" unless arguments [ :model_id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _model_id = arguments . delete ( :model_id ) method = Elasticsearch :: API :: HTTP_POST path = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_infer" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Evaluate a trained model.
Evaluate a trained model .
arguments
:body The docs to apply inference on (*Required*)
: body The docs to apply inference on ( * Required * )
see
None