org.apache.ignite.ml.knn.classification

## Class KNNClassificationModel

- java.lang.Object
- - org.apache.ignite.ml.knn.KNNModel<Double>
  - - org.apache.ignite.ml.knn.classification.KNNClassificationModel

- All Implemented Interfaces:
    Serializable, AutoCloseable, IgniteModel<Vector,Double>, Model<Vector,Double>, SpatialIndex<Double>

      public class KNNClassificationModel
      extends KNNModel<Double>

  KNN classification model. Be aware that this model is linked with cluster environment it's been built on and can't be saved or used in other places. Under the hood it keeps `Dataset` that consists of a set of resources allocated across the cluster.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class org.apache.ignite.ml.knn.KNNModel

      `distanceMeasure, k, weighted`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Double` | `predict(Vector input)` Make a prediction for the specified input arguments.

    - ### Methods inherited from class org.apache.ignite.ml.knn.KNNModel

      `close, findKClosest`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.ignite.ml.IgniteModel

      `andBefore, andThen, andThen, combine, toString`

- - ### Method Detail

    - #### predict

          public Double predict(Vector input)

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

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.0
Release Date | : October 15 2020