ClassPerformance.add_condition_class_performance_imbalance_ratio_less_than#

ClassPerformance.add_condition_class_performance_imbalance_ratio_less_than(threshold: float = 0.3, score: Optional[str] = None) PR[source]#

Add condition - relative ratio difference between highest-class and lowest-class is less than threshold.

Parameters
thresholdfloat , default: 0.3

ratio difference threshold

scorestr , default: None

limit score for condition

Returns
Self

instance of ‘ClassPerformance’ or it subtype

Raises
DeepchecksValueError

if unknown score function name were passed.