フィルターのクリア

How to extract confusion-matrix from confusion-chart?

6 ビュー (過去 30 日間)
Hassan Ashraf
Hassan Ashraf 2020 年 1 月 22 日
コメント済み: Hassan Ashraf 2020 年 1 月 29 日
I am using Neural Networks Toolbox. It allows me to plot confusion Chart by using "plotconfusion" command. But it does not allows me to see confusion matrix in the workspace. I tried to use "confusionchart" command but it pops up an error.
Error: Error using confusionchart (line 64)
Expected m to be a square matrix.
I have also attached both matrices of Targets and Outputs.
Where,
"t.mat" is a Target Matrix and "y.mat" is an output Matrix.

回答 (1 件)

Mohammad Sami
Mohammad Sami 2020 年 1 月 23 日
You need to use the function confusionmat
actual = t;
predicted = y;
mat = confusionmat(actual,predicted);
  5 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 1 月 29 日
編集済み: Mohammad Sami 2020 年 1 月 29 日
What is the type of your data ? The function accepts the following types
Data Types: single | double | logical | char | string | cell | categorical
Hassan Ashraf
Hassan Ashraf 2020 年 1 月 29 日
The data type is double

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by