Created
July 19, 2020 03:47
-
-
Save JohnDeJesus22/35398f46a1cae262a041288fb754e0e0 to your computer and use it in GitHub Desktop.
prevalence threshold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recall = cm[1,1]/(cm[1,1] + cm[1,0]) | |
specificity = cm[0,0]/(cm[0,0] + cm[0,1]) | |
numerator = sqrt(recall * (-specificity+1)) + specificity - 1 | |
denominator = recall + specificity - 1 | |
prevalence_threshold = numerator/denominator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment