Reputation: 121
I am trying out sklearn's KNN regressor. I expect it to have 0 training error for k=1. I am getting a mean square training error of 0.071. Is this possible?
Upvotes: 0
Views: 186
Reputation: 121
Figured out. When two training samples have same input and different output, the regressor doesn't consider both for k=1. It considers only one of them.
Upvotes: 1