where is the error of following code to calculate confusionmat?

조회 수: 2 (최근 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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by