Nearest Neighbors

k nearest neighbors classification
using Kd-tree search

To train a k-nearest neighbors model, use
the Classification Learner app.
For greater flexibility, train a k-nearest neighbors
model using fitcknn in the command-line interface.
After training, predict labels or estimate posterior probabilities
by passing the model and predictor data to predict.