フィルターのクリア

where is the error of following code to calculate confusionmat?

1 回表示 (過去 30 日間)
Rafid Mustafiz
Rafid Mustafiz 2018 年 9 月 22 日
コメント済み: Walter Roberson 2018 年 9 月 22 日
predictedLabels = predict(classifier, testFeatures);
testLabels = testSet.Labels;
confMat = confusionmat(testLabels, predictedLabels);
confMat = bsxfun(@rdivide,confMat,sum(confMat,2))
error is: G and GHAT need to have same number of rows
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 22 日
What shows up for size(testLabels), size(predictedLabels) ?

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by