I didn’t get why k can’t be even in KNN algorithm. It surely won’t make any difference in my program.
Why k cannot be even?
hey @amoghjalan2005 ,
there is no such must condition that your value of K should be odd. You can use any value even or odd.
But the reason why we dont prefer even value is , that the reason is that there are high chances of getting a tie in clusters while using even values. Hence , this results in very poor performance. Therefore , we do not use even values.
I hope it helped you understand that. .