MATLAB: Knn classification on a dataset

classificationdatasetknnnearest neighborStatistics and Machine Learning Toolbox

Hi i have this dataset and i want knn classification for this and also find accuracy of performance of this classification and showing the number of wrong and true classifications with confusion matrix. Any one can help me with this .please.

Best Answer

So one is to train, the other "training" one is for validation (run it through and see how accurate the predictions are compared to the known values), and the third one is a test set (which you do not know the correct answers for).
I have attached a KNN demo. See if you can adapt that to your homework problem. If not, come back for more hints.
Related Question