Could anyone help me to solve the error in the following code
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
load fisheriris
X = meas;
Y = species;
Mdl = fitcknn(X,Y,'NumNeighbors',5,'Standardize',1)
predictedY = resubPredict(Mdl)
C=confusionmat(Y,predictedY)
plotconfusion(Y,predictedY)
When i run the code i am getting error in line plotconfusion(Y,predictedY).I am using matlab version 2015a.Could anyone please help me on this.
3 Commenti
Risposte (1)
Walter Roberson
il 28 Gen 2020
plotconfusion(categorical(Y),categorical(predictedY))
This will possibly not work if you are still using that old 2015 version of MATLAB you were using before.
0 Commenti
Vedere anche
Categorie
Scopri di più su PHY Components in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!