Boundary in knn

what is the meaning of boundary in knn algorithm.
In the quiz, it is asked ‘boundary becomes smoother’ when we increase/decrease the value of k?

Hey @akshat21, in lay man terms smoothness of boundary is something like the boundaries separating different classes, must be smooth, and must not contains spikes.

Now suppose if k =1 than there will be huge impact of outliers. Which means outlliers will affect the decission boundary a lot as few points which are very very close to outlier will contain another separate area. on the other hand if k=5 or any other little higher value than the impact of the outliers will be reduced. So the points which are very close to the outlier point, will be classified correctly.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.