Calculation of tp,tn,fp,fn for multi classes
Mostrar comentarios más antiguos
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 comentarios
Guillaume
el 19 de Mzo. de 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
el 19 de Mzo. de 2015
asmi
el 20 de Mzo. de 2015
Respuesta aceptada
Más respuestas (1)
Star Strider
el 19 de Mzo. de 2015
0 votos
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.
Categorías
Más información sobre Gaussian Process Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!