Module org.elasticsearch.xcore
Class TrainedModelMetadata
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.metadata.TrainedModelMetadata
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested 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.ConstructingObjectParser<TrainedModelMetadata, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ConstructingObjectParser<TrainedModelMetadata, Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTrainedModelMetadata(String modelId, List<TotalFeatureImportance> totalFeatureImportances, FeatureImportanceBaseline featureImportanceBaselines, List<Hyperparameters> hyperparameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbooleanstatic TrainedModelMetadatafromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) getDocId()inthashCode()static Stringorg.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, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
TOTAL_FEATURE_IMPORTANCE
public static final org.elasticsearch.xcontent.ParseField TOTAL_FEATURE_IMPORTANCE -
HYPERPARAMETERS
public static final org.elasticsearch.xcontent.ParseField HYPERPARAMETERS -
FEATURE_IMPORTANCE_BASELINE
public static final org.elasticsearch.xcontent.ParseField FEATURE_IMPORTANCE_BASELINE -
MODEL_ID
public static final org.elasticsearch.xcontent.ParseField MODEL_ID -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<TrainedModelMetadata,Void> LENIENT_PARSER -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<TrainedModelMetadata,Void> STRICT_PARSER
-
-
Constructor Details
-
TrainedModelMetadata
- Throws:
IOException
-
TrainedModelMetadata
public TrainedModelMetadata(String modelId, List<TotalFeatureImportance> totalFeatureImportances, FeatureImportanceBaseline featureImportanceBaselines, List<Hyperparameters> hyperparameters)
-
-
Method Details
-
fromXContent
public static TrainedModelMetadata fromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-
docId
-
modelId
-
getModelId
-
getDocId
-
getTotalFeatureImportances
-
getFeatureImportanceBaselines
-
getHyperparameters
-
equals
-
hashCode
public int hashCode() -
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
-