All Superinterfaces:
org.apache.lucene.util.Accountable, NamedWriteable, NamedXContentObject, ToXContent, 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
  • Method Details

    • targetType

      TargetType targetType()
      Returns:
      TargetType for the model.
    • validate

      void validate()
      Runs validations against the model. Example: Tree should 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

      default TransportVersion getMinimalCompatibilityVersion()