TrainTestPerformance.add_condition_class_performance_imbalance_ratio_less_than#
- TrainTestPerformance.add_condition_class_performance_imbalance_ratio_less_than(score: str, threshold: float = 0.3) Self [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
limit score for condition
- Returns
- Self
instance of ‘TrainTestPerformance’ or it subtype
- Raises
- DeepchecksValueError
if unknown score function name were passed.