org.apache.ignite.ml.inference

## Interface Model<I,O>

- Type Parameters:
    `I` - Type of model input.
    `O` - Type of model output.
  All Superinterfaces:
    AutoCloseable
  All Known Subinterfaces:
    BayesModel<MODEL,FEATURES,OUTPUT>, ClusterizationModel<P,V>, IgniteModel<T,V>, SmoothParametrized<M>
  All Known Implementing Classes:
    AdaptableDatasetModel, ANNClassificationModel, BaggedModel, CatboostClassificationModel, CatboostRegressionModel, CompoundNaiveBayesModel, DecisionTreeConditionalNode, DecisionTreeLeafNode, DecisionTreeModel, DecisionTreeNode, DiscreteNaiveBayesModel, GaussianNaiveBayesModel, GDBModel, GmmModel, H2OMojoModel, KMeansModel, KNNClassificationModel, KNNModel, KNNRegressionModel, LinearRegressionModel, LogisticRegressionModel, ModelOnFeaturesSubspace, ModelsComposition, ModelsParallelComposition, ModelsSequentialComposition, MultiClassModel, MultilayerPerceptron, NNClassificationModel, PipelineMdl, RandomForestModel, RandomForestTreeModel, RecommendationModel, StackedModel, SVMLinearClassificationModel, TreeNode, XGModelComposition

      public interface Model<I,O>
      extends AutoCloseable

  Inference model that can be used to make predictions.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `O` | `predict(I input)` Make a prediction for the specified input arguments.

- - ### Method Detail

    - #### predict

          O predict(I input)

      Make a prediction for the specified input arguments.
      Parameters:
        `input` - Input arguments.
      Returns:
        Prediction result.

    - #### close

          void close()

      Specified by:
        `close` in interface `AutoCloseable`

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.15.0
Release Date | : April 25 2023