A classifier predicts a category or score related to categories. Choose metrics according to the errors that matter and examine class imbalance.
Before you begin
Know Python, tabular data handling and basic statistics. Use fictional or permitted data and identify the prediction or evaluation task.
Work through the idea
Keep an experiment record with the dataset, split, baseline, metric and limitations. Choose information that would genuinely be available at the time of prediction. Compare the method with a simple alternative and inspect mistakes. A learning experiment should not be presented as a validated production decision system.
- Define class labels
- Compare a baseline
- Inspect a confusion matrix
Practice task
Classify fictional support requests and examine mistakes for a rare category.
Check your result
Report per-class behavior and explain the difference between a score and a final decision.
A mistake to avoid
Do not rely on accuracy alone when one class dominates the data.
Keep a review note
Save the inputs or scenario, your reasoning and the result you checked. Explain one assumption and one case that needs more work. Revise the exercise after feedback and distinguish what you demonstrated from what remains untested.
Official reference for further study
Explore the related learning path · Choose another worksheet
