Class TrainedModelConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelConfig
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
PutTrainedModelResponse
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelConfig>Json deserializer forTrainedModelConfig -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTrainedModelConfig(TrainedModelConfig.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringAPI name:compressed_definitionfinal StringInformation on the creator of the trained model.final DateTimeThe time when the trained model was created.Any field map described in the inference configuration takes precedence.final StringThe free-text description of the trained model.final IntegerThe estimated heap usage in bytes to keep the trained model in memory.final IntegerThe estimated number of operations to use the trained model.final BooleanTrue if the full model definition is present.final InferenceConfigCreateThe default configuration for inference.final TrainedModelConfigInputinput()Required - The input field names for the model definition.final StringThe license level of the trained model.final TrainedModelLocationlocation()API name:locationmetadata()An object containing metadata about the trained model.final StringmodelId()Required - Identifier for the trained model.final ModelPackageConfigAPI name:model_packagefinal StringAPI name:model_size_bytesfinal TrainedModelTypeThe model typefinal StringAPI name:platform_architectureAPI name:prefix_stringsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>>
voidsetupTrainedModelConfigDeserializer(ObjectDeserializer<BuilderT> op) tags()Required - A comma delimited string of tags.toString()static TrainedModelConfigfinal Stringversion()The Elasticsearch version number in which the trained model was created.
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelConfig
-
-
Constructor Details
-
TrainedModelConfig
-
-
Method Details
-
trainedModelConfigOf
public static TrainedModelConfig trainedModelConfigOf(Function<TrainedModelConfig.Builder, ObjectBuilder<TrainedModelConfig>> fn) -
modelId
Required - Identifier for the trained model.API name:
model_id -
modelType
The model typeAPI name:
model_type -
tags
Required - A comma delimited string of tags. A trained model can have many tags, or none.API name:
tags -
version
The Elasticsearch version number in which the trained model was created.API name:
version -
compressedDefinition
API name:compressed_definition -
createdBy
Information on the creator of the trained model.API name:
created_by -
createTime
The time when the trained model was created.API name:
create_time -
defaultFieldMap
Any field map described in the inference configuration takes precedence.API name:
default_field_map -
description
The free-text description of the trained model.API name:
description -
estimatedHeapMemoryUsageBytes
The estimated heap usage in bytes to keep the trained model in memory.API name:
estimated_heap_memory_usage_bytes -
estimatedOperations
The estimated number of operations to use the trained model.API name:
estimated_operations -
fullyDefined
True if the full model definition is present.API name:
fully_defined -
inferenceConfig
The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required.API name:
inference_config -
input
Required - The input field names for the model definition.API name:
input -
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 -
modelSizeBytes
API name:model_size_bytes -
modelPackage
API name:model_package -
location
API name:location -
platformArchitecture
API name:platform_architecture -
prefixStrings
API name:prefix_strings -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelConfigDeserializer
protected static <BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>> void setupTrainedModelConfigDeserializer(ObjectDeserializer<BuilderT> op)
-