Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

recall calculate confusion matrix .ravel()

# tn = True Negative
# fp = False Positive
# fn = False Negative
# tp = True Positive

tn, fp, fn, tp = confusion_matrix(y_test,y_pred).ravel()

#Specificity
specificity = tn/(tn+fp)

# Recall
recall = tp/(tp+fn)
 
PREVIOUS NEXT
Tagged: #recall #calculate #confusion #matrix
ADD COMMENT
Topic
Name
1+9 =