fairlearn.metrics.mean_prediction#
- fairlearn.metrics.mean_prediction(y_true, y_pred, sample_weight=None)[source]#
Calculate the (weighted) mean prediction.
The true values are ignored, but required as an argument in order to maintain a consistent interface
- Return type:
- Parameters:
- y_truearray_like
The true labels (ignored)
- y_predarray_like
The predicted labels
- sample_weightarray_like
Optional array of sample weights