K Nearest Neighbors

The k-nearest neighbor, also known as KNN, is a supervised machine learning algorithm that classifies/predicts the labels of an individual data point. The classification of the new data point is based on the majority class of its k-nearest neighbors in the feature space (training points). The value of k is the number of neighbors, which is a hyperparameter. Also, since KNN is a non-parametric algorithm, it does not make any assumptions about the underlying data distribution.

Previous
Previous

Data Querying

Next
Next

Regressions