Introduction to Bias and Class Imbalance
Identifying and mitigating bias in data with SageMaker Clarify and sampling techniques, applying bias metrics to numeric, text and image data and resolving class imbalance.
- 4 lessons
- Module quiz
Bias in data becomes bias in predictions. If some groups are under-represented or labelled differently in training data, the model will treat them differently, which can be unfair and, in regulated areas such as lending, unlawful. Similarly, when one class is rare, such as fraud, a model can reach high accuracy by ignoring it entirely.
SageMaker Clarify measures bias in datasets before training and in predictions after it. Careful splitting, shuffling and augmentation keep evaluation honest and improve representation. Resampling, synthetic data and class weights address class imbalance.
What the exam expects
Questions test interpreting bias metrics such as class imbalance (CI) and difference in proportions of labels (DPL), recognising that accuracy is misleading on imbalanced data, so recall, precision, F1 or PR AUC should be used, and the rule that resampling and augmentation apply to the training set only.
How this module is organised
Measuring Pre-Training Bias with SageMaker Clarify explains where bias comes from and how Clarify measures it. Splitting, Shuffling and Augmenting Data to Reduce Bias explains data splits and augmentation. Measuring Bias Across Numeric, Text and Image Data explains bias in different data types, and Resolving Class Imbalance in Training and Evaluation explains the techniques for rare classes.
- Measuring Pre-Training Bias with SageMaker Clarify Lesson 1
- Splitting, Shuffling and Augmenting Data to Reduce Bias Lesson 2
- Measuring Bias Across Numeric, Text and Image Data Lesson 3
- Resolving Class Imbalance in Training and Evaluation Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 4 questions