Evaluation Metrics for Classification

Evaluate classifiers with confusion tables, precision, recall, ROC AUC, and cross-validation.

9 lessons · homework closed Oct 19, 2026

Lessons

  1. Evaluation metrics: session overview

    Recap the churn model, then introduce the metrics used to evaluate binary classifiers.

    4 min
  2. Accuracy and dummy model

    Compute accuracy, test decision thresholds, and compare the model with a dummy model that predicts no churn.

    13 min
  3. Confusion table

    Count true and false positives and negatives in a confusion table for the churn model.

    20 min
  4. Precision and Recall

    Compute precision and recall for the churn model and explain what each reveals beyond accuracy.

    15 min
  5. ROC Curves

    Build TPR and FPR across all thresholds, compare with random and ideal models, and plot the ROC curve.

    35 min
  6. ROC AUC

    Compute ROC AUC as a single score and interpret it as the chance a positive outranks a negative.

    16 min
  7. Cross-Validation

    Tune the C parameter with k-fold cross-validation, then train the final model and score it on the test set.

    17 min
  8. Summary

    Recap the evaluation metrics for the churn model, from accuracy and precision to ROC AUC and cross-validation.

    7 min
  9. Explore more

    Suggest extra practice on the F1 score, precision-recall curves, and the area under the PR curve.

Homework

Recordings, code and notes

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.