Quiz 2 Question 10 of 20

When splitting an imbalanced dataset into train and test sets in Python, which approach ensures each split has the same class proportion?

Select an answer to reveal the explanation.

Motivation