How do I choose an optimal value of k to get highest accuracy?
How can I get more accuracy?
I can even share the script if you want to see
hey @hmantv_83 ,
First split the data into two parts training and validation.
Try different values of K by training your model training part of data and check how much accurate it is on validation set.
in this way you will get the best value of k to use for final predictions.
I hope this helps.
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.