fatf.utils.metrics.metrics.false_positive_rate¶
-
fatf.utils.metrics.metrics.false_positive_rate(confusion_matrix: numpy.ndarray) → float[source]¶ Calculates the false positive rate for a binary confusion matrix.
See the documentation of
fatf.utils.metrics.tools.validate_confusion_matrixandfatf.utils.metrics.tools.validate_confusion_matrix_sizefor all the possible errors and exceptions.- Parameters
- confusion_matrixnumpy.ndarray
A confusion matrix based on which the metric will be computed.
- Returns
- metricnumber
The false positive rate.