fairlearn.metrics.false_positive_rate#
- fairlearn.metrics.false_positive_rate(y_true, y_pred, sample_weight=None, pos_label=None)[source]#
Calculate the false positive rate (also called fall-out).
Read more in the User Guide.
- Return type:
- Parameters:
- y_truearray-like
The list of true values
- y_predarray-like
The list of predicted values
- sample_weightarray-like, optional
A list of weights to apply to each sample. By default all samples are weighted equally
- pos_labelscalar, optional
The value to treat as the ‘positive’ label in the samples. If None (the default) then the largest unique value of the y arrays will be used.
- Returns:
- float
The false positive rate for the data
Gallery examples#
MetricFrame visualizations
Intersectionality in Mental Health Care
Intersectionality in Mental Health Care
Credit Loan Decisions