public class KNNClassificationTrainer extends KNNTrainer<KNNClassificationModel,KNNClassificationTrainer>
Dataset that consists of a set of resources allocated across the cluster.DatasetTrainer.EmptyDatasetExceptiondistanceMeasure, k, weightedenvBuilder, environment| Constructor and Description |
|---|
KNNClassificationTrainer() |
| Modifier and Type | Method and Description |
|---|---|
protected KNNClassificationModel |
convertDatasetIntoModel(Dataset<EmptyContext,SpatialIndex<Double>> dataset)
Convers given dataset into KNN model (classification or regression depends on implementation).
|
protected KNNClassificationTrainer |
self()
Returns
this instance. |
fitWithInitializedDeployingContext, isUpdateable, updateModel, withDataTtl, withDistanceMeasure, withIdxType, withK, withWeightedfit, fit, fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, identityTrainer, learningEnvironment, update, update, update, update, update, withConvertedLabels, withEnvironmentBuilderprotected KNNClassificationModel convertDatasetIntoModel(Dataset<EmptyContext,SpatialIndex<Double>> dataset)
convertDatasetIntoModel in class KNNTrainer<KNNClassificationModel,KNNClassificationTrainer>dataset - Dataset of spatial indices.protected KNNClassificationTrainer self()
this instance.self in class KNNTrainer<KNNClassificationModel,KNNClassificationTrainer>
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025