Error using ~= Invalid types for comparison.
Mostra commenti meno recenti
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 Commenti
KSSV
il 29 Giu 2021
Check the class of Predicted and testdata.N....they should be of same to compare.
Saraswathi S
il 2 Lug 2021
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Categorical Arrays in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!