Skip to content

Your first classifier with scikit-learn

For people

Build, compare and evaluate a real classifier end to end, predicting penguin species from their measurements.

Free on glitchdata intermediate 4 lessons 1 hr 4 min

What you'll learn

  • Prepare features and split data properly
  • Train and compare several classifiers
  • Choose and read evaluation metrics
  • Save a model and use it to make predictions

About this course

A hands-on course: from a raw CSV to a trained, tested and saved model. You will use the Palmer penguins dataset from the hub and the scikit-learn library, and learn the workflow that carries over to almost any tabular problem.

Install what you need with pip install pandas scikit-learn joblib.

Before you start

  • Basic Python
  • Working with datasets for AI (or equivalent pandas experience)

Course content

4 lessons · 1 hr 4 min

  1. 1
    The Palmer penguins problem

    Frame the task and explore the data before modelling.

    Free preview 10 min
  2. 2
    Preparing features

    Handle missing values, encode categories and split the data.

    18 min
  3. 3
    Training and comparing models

    Fit two different classifiers and compare them fairly with cross-validation.

    20 min
  4. 4
    Measuring what matters

    Accuracy, precision, recall and the confusion matrix — then save the model.

    16 min
Share X LinkedIn Reddit Bluesky Email

Ratings

No ratings yet.

Sign in to leave a rating. Sign in

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in

More in Machine learning