TrainTestSamplesMix.add_condition_duplicates_ratio_less_or_equal#

TrainTestSamplesMix.add_condition_duplicates_ratio_less_or_equal(max_ratio: float = 0.05) Self[source]#

Add condition - require ratio of test data samples that appear in train data to be less or equal to the threshold.

Parameters
max_ratiofloat , default: 0.05

Max allowed ratio of test data samples to appear in train data