PerformanceBias.add_condition_bounded_relative_performance_difference#
- PerformanceBias.add_condition_bounded_relative_performance_difference(lower_bound, upper_bound=inf)[source]#
Add condition - require relative performance difference to be between the given bounds.
Relative performance difference is defined as (score - baseline) / baseline.
- Parameters
- lower_boundfloat
Lower bound on (score - baseline) / baseline.
- upper_boundfloat, default: Infinity
Upper bound on (score - baseline) / baseline. Infinite by default (large scores do not trigger the condition).