Class TrainedModelConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelConfig
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class TrainedModelConfig extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelConfig.Builder
Builder forTrainedModelConfig
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelConfig>
_DESERIALIZER
Json deserializer forTrainedModelConfig
-
Constructor Summary
Constructors Constructor Description TrainedModelConfig(TrainedModelConfig.Builder builder)
TrainedModelConfig(java.util.function.Function<TrainedModelConfig.Builder,TrainedModelConfig.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
compressedDefinition()
API name:compressed_definition
java.lang.String
createdBy()
Information on the creator of the trained model.java.lang.String
createTime()
The time when the trained model was created.java.util.Map<java.lang.String,java.lang.String>
defaultFieldMap()
Any field map described in the inference configuration takes precedence.java.lang.String
description()
The free-text description of the trained model.java.lang.Integer
estimatedHeapMemoryUsageBytes()
The estimated heap usage in bytes to keep the trained model in memory.java.lang.Integer
estimatedOperations()
The estimated number of operations to use the trained model.InferenceConfig
inferenceConfig()
Required - The default configuration for inference.TrainedModelConfigInput
input()
Required - The input field names for the model definition.java.lang.String
licenseLevel()
The license level of the trained model.TrainedModelConfigMetadata
metadata()
An object containing metadata about the trained model.java.lang.String
modelId()
Required - Idetifier for the trained model.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
setupTrainedModelConfigDeserializer(DelegatingDeserializer<TrainedModelConfig.Builder> op)
java.util.List<java.lang.String>
tags()
Required - A comma delimited string of tags.java.lang.String
version()
The Elasticsearch version number in which the trained model was created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelConfig
-
-
Constructor Details
-
TrainedModelConfig
-
TrainedModelConfig
public TrainedModelConfig(java.util.function.Function<TrainedModelConfig.Builder,TrainedModelConfig.Builder> fn)
-
-
Method Details
-
modelId
public java.lang.String modelId()Required - Idetifier for the trained model.API name:
model_id
-
tags
public java.util.List<java.lang.String> tags()Required - A comma delimited string of tags. A trained model can have many tags, or none.API name:
tags
-
version
@Nullable public java.lang.String version()The Elasticsearch version number in which the trained model was created.API name:
version
-
compressedDefinition
@Nullable public java.lang.String compressedDefinition()API name:compressed_definition
-
createdBy
@Nullable public java.lang.String createdBy()Information on the creator of the trained model.API name:
created_by
-
createTime
@Nullable public java.lang.String createTime()The time when the trained model was created.API name:
create_time
-
defaultFieldMap
@Nullable public java.util.Map<java.lang.String,java.lang.String> defaultFieldMap()Any field map described in the inference configuration takes precedence.API name:
default_field_map
-
description
@Nullable public java.lang.String description()The free-text description of the trained model.API name:
description
-
estimatedHeapMemoryUsageBytes
@Nullable public java.lang.Integer estimatedHeapMemoryUsageBytes()The estimated heap usage in bytes to keep the trained model in memory.API name:
estimated_heap_memory_usage_bytes
-
estimatedOperations
@Nullable public java.lang.Integer estimatedOperations()The estimated number of operations to use the trained model.API name:
estimated_operations
-
inferenceConfig
Required - The default configuration for inference. This can be either a regression or classification configuration. It must match the underlying definition.trained_model's target_type.API name:
inference_config
-
input
Required - The input field names for the model definition.API name:
input
-
licenseLevel
@Nullable public java.lang.String licenseLevel()The license level of the trained model.API name:
license_level
-
metadata
An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects.API name:
metadata
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelConfigDeserializer
protected static void setupTrainedModelConfigDeserializer(DelegatingDeserializer<TrainedModelConfig.Builder> op)
-