Anyone help me please, How to use Classification Learner App to calculate accuracy rates on training set, and on test set??
3 ビュー (過去 30 日間)
古いコメントを表示
saeeda saher
2018 年 6 月 14 日
コメント済み: kanuparthi bhagyasree
2019 年 4 月 27 日
I am using classification Learner App on my dataset. My dataset has two sets, Training set and Test set these sets are separate files, I have trained the training dataset using Classification learner and exported the model, now I am not getting how to evaluate this trained model on the test set, to check the accuracy on the test set too. Please help.
0 件のコメント
採用された回答
Von Duesenberg
2018 年 6 月 14 日
It's all explained here: https://fr.mathworks.com/help/stats/export-classification-model-for-use-with-new-data.html Basically, if your trained model is called trainedModel, then use the predictFcn property on new data, eg.:
Y = trainedModel.predictFcn(newData)
3 件のコメント
Von Duesenberg
2018 年 6 月 14 日
編集済み: Von Duesenberg
2018 年 6 月 14 日
These are the predicted labels, you want now to use confusionmat or plotconfusion with true labels and predicted labels as arguments.
kanuparthi bhagyasree
2019 年 4 月 27 日
Dear Saeeda saher,
I am also facing the same issue, I got the predicted labels but now I wanted to find the accuracy and confusion matrix for the test data.
How to do that?
Please help me.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Classification Learner App についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!