K Nearest Neighbors (KNN) in 10 Minutes (Beginner Friendly)

Prof. Ryan Ahmed
Prof. Ryan Ahmed
7.4 هزار بار بازدید - 2 سال پیش - K-Nearest Neighbors (KNN) algorithm is
K-Nearest Neighbors (KNN) algorithm is a classification algorithm
that works by finding the most similar data points in the training data, and attempt to make an educated guess based on their classifications

The algorithm follows these steps:

1. Select a value for k (e.g.: 1, 2, 3, …..)
2. Calculate the Euclidian distance between the point to be classified and every other point in the training data set
3. Pick the k closest data points (points with the k smallest distances)
4. Run a majority cote among selected data points, the dominating classification is the winner. Point is classified based on the dominant class
5. Repeat


I hope you will enjoy this video and find it useful and informative.

Happy Learning!

Thanks.


#KNN #KNearestNeighbors
2 سال پیش در تاریخ 1401/07/03 منتشر شده است.
7,469 بـار بازدید شده
... بیشتر