MATLAB: True Positive and False Positve rate of classification neural network

tpr and fpr neural network

I want to get the TPR and FPR of a neural network classification and i found these expression
[tpr,fpr,thresholds] = roc(target,output)
tpr=cell2mat(tpr)
fpr=cell2mat(fpr)
tpr=sum(tpr)
fpr=sum(fpr)
is it true ? i want to get the totall of tpr and fpr for all classes

Best Answer

Yes.