public class KNNClassificationTrainer extends KNNTrainer<KNNClassificationModel,KNNClassificationTrainer>
Dataset
that consists of a set of resources allocated across the cluster.DatasetTrainer.EmptyDatasetException
distanceMeasure, k, weighted
envBuilder, 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, withWeighted
fit, fit, fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, identityTrainer, learningEnvironment, update, update, update, update, update, withConvertedLabels, withEnvironmentBuilder
protected 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.15 Release Date : December 3 2024