Module 5 · Lesson 6 of 626/56 in the course~20 min
Module lessons (6/6)
Multiclass classification
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 5 — Classification
One-vs-rest, softmax and reading a 10 by 10 confusion matrix.
What you'll learn in this lesson
- Extend binary classification to many classes.
- Train a classifier on images of handwritten digits.
- Find the most confused pair of classes with the confusion matrix.
Overview
So far the answer was yes or no. Recognising a handwritten digit has ten possible answers. Two ideas extend binary models to many classes:
load_digits contains 1,797 small images, each 8 by 8 pixels, flattened into 64 features with pixel intensities from 0 to 16. The label is the digit 0 to 9.
Sections covered in this lesson
- 1The hook: ten classes instead of two
- 2The digits dataset
- 3Multiclass strategies & averaging compared
- 4Try it: interactive multiclass confusion matrix lab
- 5Progressive examples: 10-way handwritten digits
- 6Practice
Pro Lesson · Module 5 — Classification
Unlock "Multiclass classification" and the full Machine Learning: from first principles to practice curriculum
One-vs-rest, softmax and reading a 10 by 10 confusion matrix.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.