Build a Confusion Matrix
easyTask
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
- Examine the setup code and data
- Modify the code to solve the puzzle
- Click Run or press Ctrl+Enter to execute