fairlearn.reductions.Moment#
- class fairlearn.reductions.Moment[source]#
Generic moment.
Our implementations of the reductions approach to fairness [1] make use of
Momentobjects to describe both the optimization objective and the fairness constraints imposed on the solution. This is an abstract class for all such objects.Read more in the User Guide.
Added in version 0.3.0.
- gamma(predictor)[source]#
Calculate the degree to which constraints are currently violated by the predictor.
- Return type:
- property index: MultiIndex | Index#
Return a pandas (multi-)index listing the constraints.