Path: blob/master/lessons/lesson_10-sub-Jacob_Koehler/03-ROC-AUC - done.ipynb
1904 views
More Evaluation Metrics
Precision/Recall Curves
ROC and AUC
Multiclass Evaluation
Recall Oriented Task | Precision Oriented Task |
---|---|
Tumor Detection | Search Engine Results |
Adapting the Classifier
Depending on the application, we may want to change the classifier and its threshold for class membership. Here, we look at the ability of the classifier to detect 3's and discuss how we might be interested in changing the threshold.
Adjusting the Threshold
Cancer Example
We want to explore a classification problem using breast cancer data. Here, our goal is to classify a tumor as malignant or not based on measurements of the tumor. In this example, we want to consider the nature of the classifier examined, and determine how to alter the boundary to better the classifier to our liking.
Load and examine data
Compare
LogisticRegression
,SGDClassifier
, and aDummyClassifier
Examine Precision vs. Recall curve
Examine ROC Curve
Shift Decision Boundary and evaluate
Comparing Precision and Recall
We can visualize the changes that occur accross these metrics together. To begin, we plot the
Other Classifiers
Digits and Multi-Class Classification
What are the difficult digits to see?