Module org.elasticsearch.xcore
Class TrainedModelConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.TrainedModelConfig
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final intstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<TrainedModelConfig.Builder, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<TrainedModelConfig.Builder, Void> static final ParseFieldstatic final Stringstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrainedModelConfig.Builderbuilder()voidensureParsedDefinition(NamedXContentRegistry xContentRegistry) ensureParsedDefinitionUnsafe(NamedXContentRegistry xContentRegistry) booleanstatic TrainedModelConfig.BuilderfromXContent(XContentParser parser, boolean lenient) longgetInput()longlonglonggetTags()inthashCode()booleanbooleanvoidsetFullDefinition(boolean fullDefinition) toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
CURRENT_DEFINITION_COMPRESSION_VERSION
public static final int CURRENT_DEFINITION_COMPRESSION_VERSION- See Also:
-
DECOMPRESS_DEFINITION
- See Also:
-
TOTAL_FEATURE_IMPORTANCE
- See Also:
-
FEATURE_IMPORTANCE_BASELINE
- See Also:
-
HYPERPARAMETERS
- See Also:
-
MODEL_ALIASES
- See Also:
-
DEFINITION_STATUS
- See Also:
-
MODEL_ID
-
MODEL_TYPE
-
CREATED_BY
-
VERSION
-
DESCRIPTION
-
CREATE_TIME
-
DEFINITION
-
COMPRESSED_DEFINITION
-
TAGS
-
METADATA
-
INPUT
-
MODEL_SIZE_BYTES
-
MODEL_SIZE_BYTES_WITH_DEPRECATION
-
DEPRECATED_ESTIMATED_HEAP_MEMORY_USAGE_BYTES
-
ESTIMATED_OPERATIONS
-
LICENSE_LEVEL
-
DEFAULT_FIELD_MAP
-
INFERENCE_CONFIG
-
LOCATION
-
MODEL_PACKAGE
-
PREFIX_STRINGS
-
PER_DEPLOYMENT_MEMORY_BYTES
-
PER_ALLOCATION_MEMORY_BYTES
-
PLATFORM_ARCHITECTURE
-
LENIENT_PARSER
-
STRICT_PARSER
-
-
Constructor Details
-
TrainedModelConfig
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static TrainedModelConfig.Builder fromXContent(XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-
isPackagedModel
public boolean isPackagedModel() -
getModelId
-
getModelType
-
getCreatedBy
-
getVersion
-
getDescription
-
getCreateTime
-
getTags
-
getMetadata
-
getDefaultFieldMap
-
getInferenceConfig
-
getCompressedDefinition
- Throws:
IOException
-
getCompressedDefinitionIfSet
-
getModelPackageConfig
-
clearCompressed
public void clearCompressed() -
ensureParsedDefinition
public TrainedModelConfig ensureParsedDefinition(NamedXContentRegistry xContentRegistry) throws IOException - Throws:
IOException
-
ensureParsedDefinitionUnsafe
public TrainedModelConfig ensureParsedDefinitionUnsafe(NamedXContentRegistry xContentRegistry) throws IOException - Throws:
IOException
-
getModelDefinition
-
getLocation
-
getInput
-
builder
-
getModelSize
public long getModelSize() -
getEstimatedOperations
public long getEstimatedOperations() -
getLicenseLevel
-
isAllocateOnly
public boolean isAllocateOnly() -
setFullDefinition
public void setFullDefinition(boolean fullDefinition) -
getPerDeploymentMemoryBytes
public long getPerDeploymentMemoryBytes() -
getPerAllocationMemoryBytes
public long getPerAllocationMemoryBytes() -
getPlatformArchitecture
-
getPrefixStrings
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-