📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is stratified splitting?

A. Splitting randomly without any control
B. Splitting so each set keeps the same class proportions as the whole dataset ✅
C. Splitting so each set has different classes
D. Splitting by sorting the data by date

Correct Answer: B. Splitting so each set keeps the same class proportions as the whole dataset

Explanation

Stratification preserves the share of each class in train, validation and test sets, which matters for imbalanced data.