Effacer les filtres
Effacer les filtres

where is the error of following code to calculate confusionmat?

1 vue (au cours des 30 derniers jours)
Rafid Mustafiz
Rafid Mustafiz le 22 Sep 2018
Commenté : Walter Roberson le 22 Sep 2018
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 commentaire
Walter Roberson
Walter Roberson le 22 Sep 2018
What shows up for size(testLabels), size(predictedLabels) ?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by