Module org.elasticsearch.xcore
Class TrainedModelMetadata
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.metadata.TrainedModelMetadata
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested 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 ConstructingObjectParser<TrainedModelMetadata, Void> static final ParseFieldstatic final Stringstatic final ConstructingObjectParser<TrainedModelMetadata, Void> static final 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(XContentParser parser, boolean lenient) getDocId()inthashCode()static StringtoXContent(XContentBuilder builder, 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
-
HYPERPARAMETERS
-
FEATURE_IMPORTANCE_BASELINE
-
MODEL_ID
-
LENIENT_PARSER
-
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(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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-