Why use stratified train-test splits?
Reveal the answer and explore the explanation.
06MediumWhy use stratified train-test splits?
Answer
Medium
Why use stratified train-test splits?
Answer
Preserves class proportions approximately across splits.
Practical example
Keep rare positive cases represented in training and test.
Reference: Further reading ↗