Build a Confusion Matrix

easy

Task

Create and display a confusion matrix for a classifier's predictions on the iris dataset.

Why It Matters

Accuracy alone can be misleading, especially with imbalanced classes. A confusion matrix shows exactly which classes are being confused with which - essential for understanding model behavior and debugging classification problems.

Instructions

  1. Examine the setup code and data
  2. Modify the code to solve the puzzle
  3. Click Run or press Ctrl+Enter to execute

Command Palette

Search for a command to run...