Knn Classifiers Explain Relationship Parameter K Model S Tendency Overfitting Q37101278

For kNN classifiers, explain the relationship between parameterk and the model’s tendency to overfitting.


Solution


`Hey,

Note: Brother in case of any queries, just comment inbox I would be very happy to assist all your queries

We should choose K in K – Nearest Neighbour Algorithmswisely.

If we choose our K = 1 , then our algorithm behaves as overfitting and it gives a non – smooth decision surface.

As K increases, our decision surface gets smoother. And,if wechoose K = n, then our algorithm behaves as underfitting and itgives a smooth decision surface and everything becomes one classwhich is the majority class in

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.