Accessing the Confusion Matrix Data

2 ビュー (過去 30 日間)
Steve
Steve 2019 年 9 月 16 日
編集済み: Stephan 2019 年 9 月 17 日
Is the data for the confusion matrix available (besides just the number inside of the picture)?
I'm running many models and I would to programmatically extract the data so I don't have to record it by hand.
Thank you,
Steve

採用された回答

Stephan
Stephan 2019 年 9 月 17 日
編集済み: Stephan 2019 年 9 月 17 日
doc confusionmat
confusionmat gives you a matrix, containing all the informations needed - it can be used also as the NormalizedValues property of the confusionchart object:
cm = confusionchart(Y,predictedY);
Matrix = cm.NormalizedValues

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Statistics and Machine Learning Toolbox についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by