Answers for "specificity formula python"

0

specificity formula python

# 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)
Posted by: Guest on January-22-2022

Python Answers by Framework

Browse Popular Code Answers by Language