Calculation of tp,tn,fp,fn for multi classes
Ältere Kommentare anzeigen
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 Kommentare
Guillaume
am 19 Mär. 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
am 19 Mär. 2015
asmi
am 20 Mär. 2015
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 19 Mär. 2015
0 Stimmen
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.
Kategorien
Mehr zu Gaussian Process Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!