Class TrainedModelInferenceStats

java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceStats
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class TrainedModelInferenceStats
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • failureCount

      public final long failureCount()
      Required - The number of failures when using the model for inference.

      API name: failure_count

    • inferenceCount

      public final long inferenceCount()
      Required - The total number of times the model has been called for inference. This is across all inference contexts, including all pipelines.

      API name: inference_count

    • cacheMissCount

      public final long cacheMissCount()
      Required - The number of times the model was loaded for inference and was not retrieved from the cache. If this number is close to the inference_count, then the cache is not being appropriately used. This can be solved by increasing the cache size or its time-to-live (TTL). See General machine learning settings for the appropriate settings.

      API name: cache_miss_count

    • missingAllFieldsCount

      public final long missingAllFieldsCount()
      Required - The number of inference calls where all the training features for the model were missing.

      API name: missing_all_fields_count

    • timestamp

      public final Time timestamp()
      Required - The time when the statistics were last updated.

      API name: timestamp

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupTrainedModelInferenceStatsDeserializer

      protected static void setupTrainedModelInferenceStatsDeserializer​(ObjectDeserializer<TrainedModelInferenceStats.Builder> op)