Borrar filtros
Borrar filtros

where is the error of following code to calculate confusionmat?

1 visualización (últimos 30 días)
Rafid Mustafiz
Rafid Mustafiz el 22 de Sept. de 2018
Comentada: Walter Roberson el 22 de Sept. de 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

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by