"NearestNeighbors" (Machine Learning Method)
Details & Suboptions
- Nearest neighbors is a type of instance-based learning. In its simplest form, it picks the commonest class or averages the values among the k nearest neighbors.
- The following options can be given:
-
"NeighborsNumber" Automatic the number of neighbors to consider (k) "DistributionSmoothing" 0.5 regularization parameter "NearestMethod" Automatic the method to use for computing the k-nearest examples - Possible settings for "NearestMethod" include:
-
"KDtree" uses a k‐d tree data structure for storing the data "Octree" uses an octree data structure for storing the data "Scan" exaustive search on the entire dataset
Examples
open all close allBasic Examples (2)
Options (6)
"DistributionSmoothing" (2)
"NearestMethod" (2)
See Also
Classify Predict ClassifierFunction PredictorFunction ClassifierMeasurements PredictorMeasurements SequencePredict ClusterClassify
Methods: DecisionTree LinearRegression LogisticRegression GaussianProcess GradientBoostedTrees Markov NaiveBayes NeuralNetwork RandomForest SupportVectorMachine