What is KNN | Data Science Interview Question 17.

What is KNN | Data Science Interview Question 17.

KNN is a simple yet powerful machine learning algorithm that makes predictions based on the closest data points. For classification, it picks the majority class among the nearest neighbors. For regression, it takes the average value. It’s like asking your neighbors for advice majority wins!