Class TrainedModelInferenceStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceStats.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelInferenceStats>
- Enclosing class:
- TrainedModelInferenceStats
public static class TrainedModelInferenceStats.Builder extends java.lang.Object implements ObjectBuilder<TrainedModelInferenceStats>
Builder for
TrainedModelInferenceStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelInferenceStats
build()
Builds aTrainedModelInferenceStats
.TrainedModelInferenceStats.Builder
cacheMissCount(long value)
The number of times the model was loaded for inference and was not retrieved from the cache.TrainedModelInferenceStats.Builder
failureCount(long value)
The number of failures when using the model for inference.TrainedModelInferenceStats.Builder
inferenceCount(long value)
The total number of times the model has been called for inference.TrainedModelInferenceStats.Builder
missingAllFieldsCount(long value)
The number of inference calls where all the training features for the model were missing.TrainedModelInferenceStats.Builder
timestamp(java.lang.String value)
The time when the statistics were last updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureCount
The number of failures when using the model for inference.API name:
failure_count
-
inferenceCount
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
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
The number of inference calls where all the training features for the model were missing.API name:
missing_all_fields_count
-
timestamp
The time when the statistics were last updated.API name:
timestamp
-
build
Builds aTrainedModelInferenceStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelInferenceStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-