public class KNNRegressionModel extends KNNClassificationModel
This is an instance-based learning method.
distanceMeasure, k, stgy| Constructor and Description |
|---|
KNNRegressionModel(Dataset<EmptyContext,LabeledVectorSet<Double,LabeledVector>> dataset)
Builds the model via prepared dataset.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
apply(Vector v) |
String |
toString() |
String |
toString(boolean pretty) |
copyStateFrom, findKNearestNeighbors, saveModelbuildLabeledDatasetOnListOfVectors, copyParametersFrom, equals, getClassVoteForVector, getClassWithMaxVotes, getDistanceMeasure, getDistances, getKClosestVectors, hashCode, putDistanceIdxPair, withDistanceMeasure, withK, withStrategypublic KNNRegressionModel(Dataset<EmptyContext,LabeledVectorSet<Double,LabeledVector>> dataset)
dataset - Specially prepared object to run algorithm over it.public String toString()
toString in class NNClassificationModel
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019