Support
π What is Support?
πΉ Definition
Support is the number of actual occurrences of each class in a dataset.
It tells you how many true instances exist for a class, independent of model predictions.
π Mathematical Expression
For a class :
π§ Key Idea
- Support depends only on ground truth labels
- It does not depend on model predictions
π That’s why:
Support remains the same across all models
π Example
Suppose we have a dataset of 100 emails:
| Class | Count |
|---|---|
| Spam | 30 |
| Not Spam | 70 |
πΉ Support Values
- Support (Spam) = 30
- Support (Not Spam) = 70
πSupport in Confusion Matrix
Using confusion matrix:
| Actual Positive | Actual Negative | |
|---|---|---|
| Predicted Positive | TP | FP |
| Predicted Negative | FN | TN |
πΉ Support for Positive Class
π Total actual positives
πΉ Support for Negative Class
π Total actual negatives
π― Why Support is Important
πΉ 1. Detects Class Imbalance
If support is uneven:
| Class | Support |
|---|---|
| Class A | 950 |
| Class B | 50 |
π Dataset is imbalanced
πΉ Impact:
- Accuracy becomes misleading
- Minority class may be ignored
πΉ 2. Helps Interpret Metrics
Example:
- Recall = 90%
- But support = 10
π Only 9 correct predictions → not very reliable
πΉ 3. Used in Weighted Metrics
Weighted averages use support:
πΉ 4. Evaluates Reliability
- High support → metric is more reliable
- Low support → metric may be unstable
π 8. Role in Classification Report
Typical output (e.g., sklearn):
| Class | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| Spam | 0.70 | 0.50 | 0.58 | 140 |
| Not Spam | 0.83 | 0.92 | 0.87 | 360 |
π Support helps you interpret:
- Whether results are balanced or biased
π―Key Takeaways
- Support = number of actual samples per class
- Independent of model predictions
- Helps detect class imbalance
- Important for interpreting evaluation metrics
- Used in weighted averaging
π Final Insight
Support answers the question:
“How much data do we actually have for each class?”
Comments
Post a Comment