ClassImbalance.add_condition_class_ratio_less_than#

ClassImbalance.add_condition_class_ratio_less_than(class_imbalance_ratio_th: float = 0.1)[source]#

Add condition - ratio between least to most frequent labels.

This ratio is compared to class_imbalance_ratio_th.

Parameters
class_imbalance_ratio_th: float, default: 0.1

threshold for least frequent label to most frequent label.