Class TrainedModelConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelConfig
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
PutTrainedModelResponse
@JsonpDeserializable public class TrainedModelConfig extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTrainedModelConfig.AbstractBuilder<BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>>static classTrainedModelConfig.BuilderBuilder forTrainedModelConfig. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelConfig>_DESERIALIZERJson deserializer forTrainedModelConfig -
Constructor Summary
Constructors Modifier Constructor Description protectedTrainedModelConfig(TrainedModelConfig.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description java.lang.StringcompressedDefinition()API name:compressed_definitionjava.lang.StringcreatedBy()Information on the creator of the trained model.TimecreateTime()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.Stringdescription()The free-text description of the trained model.java.lang.IntegerestimatedHeapMemoryUsageBytes()The estimated heap usage in bytes to keep the trained model in memory.java.lang.IntegerestimatedOperations()The estimated number of operations to use the trained model.InferenceConfiginferenceConfig()Required - The default configuration for inference.TrainedModelConfigInputinput()Required - The input field names for the model definition.java.lang.StringlicenseLevel()The license level of the trained model.TrainedModelConfigMetadatametadata()An object containing metadata about the trained model.java.lang.StringmodelId()Required - Idetifier for the trained model.voidserialize(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)java.util.List<java.lang.String>tags()Required - A comma delimited string of tags.java.lang.StringtoString()static TrainedModelConfigtrainedModelConfigOf(java.util.function.Function<TrainedModelConfig.Builder,ObjectBuilder<TrainedModelConfig>> fn)java.lang.Stringversion()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, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelConfig
-
-
Constructor Details
-
TrainedModelConfig
-
-
Method Details
-
trainedModelConfigOf
public static TrainedModelConfig trainedModelConfigOf(java.util.function.Function<TrainedModelConfig.Builder,ObjectBuilder<TrainedModelConfig>> fn) -
modelId
public final java.lang.String modelId()Required - Idetifier for the trained model.API name:
model_id -
tags
public final 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 final java.lang.String version()The Elasticsearch version number in which the trained model was created.API name:
version -
compressedDefinition
@Nullable public final java.lang.String compressedDefinition()API name:compressed_definition -
createdBy
@Nullable public final java.lang.String 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
public final 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 final java.lang.String description()The free-text description of the trained model.API name:
description -
estimatedHeapMemoryUsageBytes
@Nullable public final 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 final 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 final 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelConfigDeserializer
protected static <BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>> void setupTrainedModelConfigDeserializer(ObjectDeserializer<BuilderT> op)
-