| Package | Description |
|---|---|
| org.apache.ignite.ml.knn.classification |
Contains main APIs for kNN classification algorithms.
|
| org.apache.ignite.ml.knn.regression |
Contains helper classes for kNN regression algorithms.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> KNNClassificationModel |
KNNClassificationTrainer.fit(DatasetBuilder<K,V> datasetBuilder,
IgniteBiFunction<K,V,double[]> featureExtractor,
IgniteBiFunction<K,V,Double> lbExtractor)
Trains model based on the specified data.
|
KNNClassificationModel<K,V> |
KNNClassificationModel.withDistanceMeasure(DistanceMeasure distanceMeasure)
Set up parameter of the kNN model.
|
KNNClassificationModel<K,V> |
KNNClassificationModel.withK(int k)
Set up parameter of the kNN model.
|
KNNClassificationModel<K,V> |
KNNClassificationModel.withStrategy(KNNStrategy stgy)
Set up parameter of the kNN model.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KNNRegressionModel<K,V>
This class provides kNN Multiple Linear Regression or Locally [weighted] regression (Simple and Weighted versions).
|
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018