DP-100 · Question #116
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is B. No. Stratified split does not compensate for class imbalance - it preserves the existing class distribution across the train/test split rather than correcting it. If the original dataset has a 95/5 class ratio, a stratified split will produce subsets with the same 95/5 ratio. To…
Question
Options
- AYes
- BNo
How the community answered
(43 responses)- A28% (12)
- B72% (31)
Explanation
Stratified split does not compensate for class imbalance - it preserves the existing class distribution across the train/test split rather than correcting it. If the original dataset has a 95/5 class ratio, a stratified split will produce subsets with the same 95/5 ratio. To actually address class imbalance, you would use techniques such as SMOTE (Synthetic Minority Over-sampling Technique), random oversampling of the minority class, random undersampling of the majority class, or class weighting during model training. The solution does not meet the goal.
Topics
Community Discussion
No community discussion yet for this question.