How I can view the misclassified records and correct classified records in classification learner
古いコメントを表示
I am performing classification using knn. how I can see the records which are misclassified by the classifier
回答 (1 件)
Hamoon
2015 年 9 月 9 日
0 投票
Considering the very nature of knn classifier, your question is logically wrong. It has nothing to do with Matlab actually. If you are passing through the correct label for training data, and you are setting a number for k and a distance function to calculate distances, then you are not allowed to change anything else. If you want to classify your data by yourself that won't be knn classifier. In knn, only test(sample) data can be classified wrong which is the output of the classifier and you can see them and you are not allowed to change them.
4 件のコメント
Rashmi Goel
2015 年 9 月 10 日
Hamoon
2015 年 9 月 10 日
the output of the following function is what you want, Class variable shows the predicted classes for sample data.
Class = knnclassify(Sample, Training, Group)
Walter Roberson
2015 年 9 月 10 日
And then you compare that Class to the class you know for the data.
Hamoon
2015 年 9 月 10 日
Yes, exactly, thank you Walter.
カテゴリ
ヘルプ センター および File Exchange で Classification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!