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!