How to calculate the accuracy of the knn algo?
How to calculate the accuracy of the knn algo
hey @itzsakshi26gupta ,
Create a validation set , a subset set of training data on which the KNN is not trained before.
Create get predictions on this set by your model
Calculate the percentage of correct predictions. This is your accuracy score.
I hope this helps you.
Thank You and Happy Learning .