Error using ~= Invalid types for comparison.
Mostrar comentarios más antiguos
misclassrate = sum(Predicted ~= testdata.N)/numel(Predicted)
Here, my predicted variables are categorical while testdata.N is from a table.
Can anyone say what is the issue here?
2 comentarios
KSSV
el 29 de Jun. de 2021
Check the class of Predicted and testdata.N....they should be of same to compare.
Saraswathi S
el 2 de Jul. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Categorical Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!