- SingleDatasetPerformance.add_condition_less_than(threshold: float, metrics: Optional[List[str]] = None, class_mode: str = 'all')[source]#
Add condition - the result is less than the threshold.
- threshold: float
The threshold that the metrics result should be less than.
- metrics: List[str]
The names of the metrics from the check to apply the condition to. If None, runs on all of the metrics that were calculated in the check.
- class_mode: str, default: ‘all’
The decision rule over the classes, one of ‘any’, ‘all’, class name. If ‘any’, passes if at least one class result is above the threshold, if ‘all’ passes if all of the class results are above the threshold, class name, passes if the result for this specified class is above the thershold.