RANIARANIA Academy

Supervised Learning — Classification

Build classifiers for real problems with Python and scikit-learn — logistic regression, k-NN, decision trees, random forests and an overview of SVMs. You will learn the fit/predict workflow, read probability outputs, handle class imbalance, and work a full classification example end to end.

Watch the free preview

What classification is and how scikit-learn fits a model — free to watch, no account needed.

Machine Learning INTERMEDIATE · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Build classifiers for real problems with scikit-learn using the fit/predict workflow
  • Apply logistic regression, k-NN, decision trees and random forests to labelled data
  • Read and calibrate probability outputs to make threshold decisions
  • Evaluate classifiers with the confusion matrix, precision, recall, F1 and ROC-AUC
  • Diagnose and correct class imbalance so the minority class is not ignored

Syllabus

Classification and the fit/predict Workflow
What classification is and how scikit-learn fits a modelFree preview15 min
Logistic regression — the linear baseline classifier15 min
Neighbours and Trees
k-Nearest Neighbours — classify by similarity15 min
Decision trees — rules you can read15 min
Ensembles, SVMs and Probabilities
Random forests — many trees, less variance15 min
Support vector machines and probability outputs15 min
Evaluation and Class Imbalance
Evaluating classifiers beyond accuracy15 min
Class imbalance — stopping the minority class being ignored15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min