Question

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

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

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The “K” is KNN algorithm is the nearest neighbors we wish to take vote from.

We should choose K in K - Nearest Neighbour Algorithms wisely. If we choose our K = 1 , then our algorithm behaves as over fitting and it gives a non - smooth decision surface. As K increases, our decision surface gets smoother. And,if we choose K = n, then our algorithm behaves as underfitting and it gives a smooth decision surface and everything becomes one class which is the majority class in our DataSet. So, we should choose K wisely such that it should neither be overfitting nor be underfitting .

Underfitting means the model does not fit, in other words, does not predict, the (training) data very well. On the other hand, overfitting means that the model predict the (training) data too well. It is too good to be true. If the new data point comes in, the prediction may be wrong.

The bias is an error from assumptions are made in the learning algorithm. High bias can cause an algorithm to miss the relevant relations between features and target outputs. In other words, model with high bias pays very little attention to the training data and oversimplifies the model.

The variance is an error from sensitivity to small fluctuations in the training set. High variance can cause an algorithm to model the random noise in the training data, rather than the intended outputs. In other words, model with high variance pays a lot of attention to training data and does not generalize on the data which it hasn’t seen before.

Normally, underfitting implies high bias and low variance, and overfitting implies low bias but high variance.

So, when k=1 tendency for overfitting is more as k increases tendency for overfitting decreases.

Add a comment
Know the answer?
Add Answer to:
For kNN classifiers, explain the relationship between parameter k and the model’s tendency to overfitting.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT