fairlearn.reductions.ClassificationMoment#
- class fairlearn.reductions.ClassificationMoment[source]#
Moment that can be expressed as weighted classification error.
- gamma(predictor)[source]#
Calculate the degree to which constraints are currently violated by the predictor.
- load_data(X, y, *, sensitive_features=None)[source]#
Load a set of data for use by this object.
- Parameters:
- Xarray
The feature array
- y
pandas.Series
The label vector
- sensitive_features
pandas.Series
The sensitive feature vector (default None)
- property total_samples#
Return the number of samples in the data.
Gallery examples#
Passing pipelines to mitigation techniques
Passing pipelines to mitigation techniques
GridSearch with Census Data
Credit Loan Decisions