nueramic_mathml.ml.metrics.fpr#

fpr(y_true, y_pred)[source]#

Return False Positive Rate. FPR = FP / N = FP / (FP + TN).

Note

if N == 0, then FPR = 0

Parameters:
  • y_true (Tensor) – array with true values of binary classification

  • y_pred (Tensor) – array with prediction values of binary classification

Returns:

Return type:

float