Compute specificity with logistic regression model

1
2
#the model predicted rejected and the student was rejected
true_negatives = len(admissions[(admissions["predicted_label"] == 0) & (admissions["actual_label"] == 0)])
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The dataset is about graduate school admissions.
Specificity or True Negative Rate is the proportion of applicants that were correctly rejected.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.