evalml.preprocessing.BalancedClassificationDataTVSplit

class evalml.preprocessing.BalancedClassificationDataTVSplit(balanced_ratio=4, min_samples=100, min_percentage=0.1, test_size=0.25, shuffle=True, random_seed=0)[source]

Data splitter for generating training and validation split using Balanced Classification Data Sampler.

Methods

__init__

Create Balanced Classification Data TV splitter

get_n_splits

Returns the number of splits of this object.

split

Splits and returns the indices of the training and testing using the data sampler provided.

transform_sample

Transforms the input data with the balancing strategy.

Class Inheritance

Inheritance diagram of BalancedClassificationDataTVSplit