Error using ~= Invalid types for comparison.
古いコメントを表示
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 件のコメント
KSSV
2021 年 6 月 29 日
Check the class of Predicted and testdata.N....they should be of same to compare.
Saraswathi S
2021 年 7 月 2 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Categorical Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!