SingleDatasetPerformance.add_condition_greater_than#
- SingleDatasetPerformance.add_condition_greater_than(threshold: float, metrics: Optional[List[str]] = None, class_mode: str = 'all')[source]#
Add condition - the selected metrics scores are greater than the threshold.
- Parameters
- threshold: float
The threshold that the metrics result should be grater than.
- metrics: List[str]
The names of the metrics from the check to apply the condition to. If None, runs on all 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 the class results are above the threshold, class name, passes if the result for this specified class is above the threshold.