Module org.elasticsearch.xcore
Interface TrainedModel
- All Superinterfaces:
org.apache.lucene.util.Accountable,NamedWriteable,NamedXContentObject,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,Writeable
- All Known Subinterfaces:
LenientlyParsedTrainedModel,StrictlyParsedTrainedModel
- All Known Implementing Classes:
Ensemble,LangIdentNeuralNetwork,Tree
public interface TrainedModel
extends NamedXContentObject, NamedWriteable, org.apache.lucene.util.Accountable
-
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
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLEFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionlongdefault TransportVersionvoidvalidate()Runs validations against the model.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsedMethods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.xpack.core.ml.utils.NamedXContentObject
getNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Method Details
-
targetType
TargetType targetType()- Returns:
TargetTypefor the model.
-
validate
void validate()Runs validations against the model. Example:Treeshould check if there are any loops- Throws:
ElasticsearchException- if validations fail
-
estimatedNumOperations
long estimatedNumOperations()- Returns:
- The estimated number of operations required at inference time
-
getMinimalCompatibilityVersion
-