Compute sensitivity with logistic regression model

#the model predicted admitted and the student was admitted true_positives = len(admissions[(admissions["predicted_label"] == 1) & (admissions["actual_label"] == 1)]) #the model predicted rejected but the student was actually admitted false_negatives = len(admissions[(admissions["predicted_label"] == 0) & (admissions["actual_label"] == 1)]) sensitivity = true_positives / (true_positives+false_negatives )
The dataset is about graduate school admissions.
Sensitivity or True Postive Rate is the proportion of applicants that were correctly admitted of all of the students that should have been admitted (True Positives + False Negatives).

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.