Module org.elasticsearch.xcore
Class TrainedModelConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.TrainedModelConfig
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final intstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final TransportVersionstatic final TransportVersionFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrainedModelConfig.Builderbuilder()voidensureParsedDefinition(org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) ensureParsedDefinitionUnsafe(org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) booleanstatic TrainedModelConfig.BuilderfromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) longgetInput()longlonglonggetTags()inthashCode()booleanbooleanvoidsetFullDefinition(boolean fullDefinition) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField MODEL_ID -
MODEL_TYPE
public static final org.elasticsearch.xcontent.ParseField MODEL_TYPE -
CREATED_BY
public static final org.elasticsearch.xcontent.ParseField CREATED_BY -
VERSION
public static final org.elasticsearch.xcontent.ParseField VERSION -
DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField DESCRIPTION -
CREATE_TIME
public static final org.elasticsearch.xcontent.ParseField CREATE_TIME -
DEFINITION
public static final org.elasticsearch.xcontent.ParseField DEFINITION -
COMPRESSED_DEFINITION
public static final org.elasticsearch.xcontent.ParseField COMPRESSED_DEFINITION -
TAGS
public static final org.elasticsearch.xcontent.ParseField TAGS -
METADATA
public static final org.elasticsearch.xcontent.ParseField METADATA -
INPUT
public static final org.elasticsearch.xcontent.ParseField INPUT -
MODEL_SIZE_BYTES
public static final org.elasticsearch.xcontent.ParseField MODEL_SIZE_BYTES -
MODEL_SIZE_BYTES_WITH_DEPRECATION
public static final org.elasticsearch.xcontent.ParseField MODEL_SIZE_BYTES_WITH_DEPRECATION -
DEPRECATED_ESTIMATED_HEAP_MEMORY_USAGE_BYTES
public static final org.elasticsearch.xcontent.ParseField DEPRECATED_ESTIMATED_HEAP_MEMORY_USAGE_BYTES -
ESTIMATED_OPERATIONS
public static final org.elasticsearch.xcontent.ParseField ESTIMATED_OPERATIONS -
LICENSE_LEVEL
public static final org.elasticsearch.xcontent.ParseField LICENSE_LEVEL -
DEFAULT_FIELD_MAP
public static final org.elasticsearch.xcontent.ParseField DEFAULT_FIELD_MAP -
INFERENCE_CONFIG
public static final org.elasticsearch.xcontent.ParseField INFERENCE_CONFIG -
LOCATION
public static final org.elasticsearch.xcontent.ParseField LOCATION -
MODEL_PACKAGE
public static final org.elasticsearch.xcontent.ParseField MODEL_PACKAGE -
PREFIX_STRINGS
public static final org.elasticsearch.xcontent.ParseField PREFIX_STRINGS -
PER_DEPLOYMENT_MEMORY_BYTES
public static final org.elasticsearch.xcontent.ParseField PER_DEPLOYMENT_MEMORY_BYTES -
PER_ALLOCATION_MEMORY_BYTES
public static final org.elasticsearch.xcontent.ParseField PER_ALLOCATION_MEMORY_BYTES -
PLATFORM_ARCHITECTURE
public static final org.elasticsearch.xcontent.ParseField PLATFORM_ARCHITECTURE -
VERSION_3RD_PARTY_CONFIG_ADDED
-
VERSION_ALLOCATION_MEMORY_ADDED
-
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder,Void> LENIENT_PARSER -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder,Void> STRICT_PARSER
-
-
Constructor Details
-
TrainedModelConfig
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static TrainedModelConfig.Builder fromXContent(org.elasticsearch.xcontent.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(org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) throws IOException - Throws:
IOException
-
ensureParsedDefinitionUnsafe
public TrainedModelConfig ensureParsedDefinitionUnsafe(org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-