Stratified split
Also: stratify
Evaluation
Splitting so that each part keeps the same share of each label as the whole dataset.
ExampleAbout 26.5% of customers left; stratify=y keeps that share in both the training and test parts.
Also: stratify
Splitting so that each part keeps the same share of each label as the whole dataset.
ExampleAbout 26.5% of customers left; stratify=y keeps that share in both the training and test parts.