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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelInferenceStats.Builder
Builder forTrainedModelInferenceStats
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelInferenceStats>
_DESERIALIZER
Json deserializer forTrainedModelInferenceStats
-
Method Summary
Modifier and Type Method Description int
cacheMissCount()
Required - The number of times the model was loaded for inference and was not retrieved from the cache.int
failureCount()
Required - The number of failures when using the model for inference.int
inferenceCount()
Required - The total number of times the model has been called for inference.int
missingAllFieldsCount()
Required - The number of inference calls where all the training features for the model were missing.static TrainedModelInferenceStats
of(java.util.function.Function<TrainedModelInferenceStats.Builder,ObjectBuilder<TrainedModelInferenceStats>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTrainedModelInferenceStatsDeserializer(ObjectDeserializer<TrainedModelInferenceStats.Builder> op)
Time
timestamp()
Required - The time when the statistics were last updated.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelInferenceStats
-
-
Method Details
-
of
public static TrainedModelInferenceStats of(java.util.function.Function<TrainedModelInferenceStats.Builder,ObjectBuilder<TrainedModelInferenceStats>> fn) -
cacheMissCount
public final int 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 theinference_count
, the cache is not being appropriately used. This can be solved by increasing the cache size or its time-to-live (TTL). Refer to general machine learning settings for the appropriate settings.API name:
cache_miss_count
-
failureCount
public final int failureCount()Required - The number of failures when using the model for inference.API name:
failure_count
-
inferenceCount
public final int 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
-
missingAllFieldsCount
public final int missingAllFieldsCount()Required - The number of inference calls where all the training features for the model were missing.API name:
missing_all_fields_count
-
timestamp
Required - The time when the statistics were last updated.API name:
timestamp
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelInferenceStatsDeserializer
protected static void setupTrainedModelInferenceStatsDeserializer(ObjectDeserializer<TrainedModelInferenceStats.Builder> op)
-