Calculation of tp,tn,fp,fn for multi classes
Afficher commentaires plus anciens
Output=[1,1,1,-1,1,2,9,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,2,5,6,4,14,3,4]
Labels=[1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6]
from these values I have to calculate TP,TN,FP,FN..
3 commentaires
Guillaume
le 19 Mar 2015
TP,TN,FP,FN might mean something to you and to people in your field of work. But to others (and me) they're just meaningless abbreviations.
Give more details or a link, and add a tag specifying which domains this apply to.
asmi
le 19 Mar 2015
asmi
le 20 Mar 2015
Réponse acceptée
Plus de réponses (1)
Star Strider
le 19 Mar 2015
0 votes
I don’t understand your output. In theory, your classifier should assign one of the labels for each input (1-6), but your output contains classes such as -1, 9, and 14. That fails.
Anyway, when you get that problem sorted (and you must before you can go any further), see the documentation for confusionmat.
Catégories
En savoir plus sur Gaussian Process Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!