langfair.metrics.classification.metrics.false_discovery.FalseDiscoveryRateParity#

class langfair.metrics.classification.metrics.false_discovery.FalseDiscoveryRateParity#

Bases: Metric

__init__()#

This class computes false negative rate parity. The user may specify whether to compute this metric as a difference or a ratio.

Methods

__init__()

This class computes false negative rate parity.

binary_confusion_matrix(y_true, y_pred)

evaluate(groups, y_pred, y_true[, ratio])

This method computes disparity in false negative rates between two groups.

evaluate(groups, y_pred, y_true, ratio=False)#

This method computes disparity in false negative rates between two groups.

Parameters:
  • groups (Array-like) – Group indicators. Must contain exactly two unique values.

  • y_pred (Array-like) – Binary model predictions

  • y_true (Array-like) – Binary labels (ground truth values)

  • ratio (bool, default=False) – Indicates whether to compute the metric as a difference or a ratio

Returns:

Value of false discovery rate parity

Return type:

float