Split an imbalanced classification dataset.
Keep class proportions from becoming extreme in each split.
Choose two appropriate practices.
Consider stratification while also checking time order, group overlap, leakage, and recording the split conditions.
Detailed explanation
Minority examples are more likely to appear in each fold.
Minority examples are more likely to appear in each fold.
Stratification alone does not solve leakage or grouping.
Stratification alone does not solve leakage or grouping.
Time-aware splits may be required to prevent future leakage.
Time-aware splits may be required to prevent future leakage.
Results cannot be reproduced or explained.
Results cannot be reproduced or explained.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 1.3の評価データ分割と不均衡データを確認する。Expected result
層化分割の利点と、適用できない条件を説明できる。Key points
- Stratification
- Class balance
- Time
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.