Logo elodees  elodees

A caring AI for a better world













Only alphabetic characters accented or not as well as the space are accepted

Logo IA




K nearest neighbors





No account yet ?

Sign up to access all content




In machine learning, the k nearest neighbor method is a supervised learning method.

Abbreviated k-NN or KNN.

There is a learning database made up of N “input-output” pairs.

To estimate the output associated with a new input x, this method consists in taking into account the k training samples whose input is closest to the new input x, according to a distance to be defined.

Since this algorithm is distance-based, normalization can improve its accuracy.

In the classification, we will retain the class most represented among the k outputs associated with the k inputs closest to the new input x.

In pattern recognition, the k-nearest neighbors algorithm is a nonparametric method used for classification and regression.





Data engineering


Deep learning

Machine learning












Welcome, my name is Eric Soupet and I am the administrator of the site elodees.com. elodees.com is a state of the art of Artificial Intelligence and aims to be collaborative, you can now offer content such as articles, events, tutorials, ... so don't hesitate !

Platform images credit : Pixabay - Pixabay License | Pexels - Pexels License