FalseDiscoveryRateMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Classification

Computes False Discovery Rate (FDR): FP / (FP + TP) = 1 - Precision.

Implements: IClassificationMetric<T>

For Beginners

FDR answers: “Of all positive predictions, how many were wrong?”

  • Range: 0 to 1, lower is better
  • 0 = no false positives among positive predictions
  • Important in scientific testing (controlling false discoveries)

How It Works

FDR = FP / (FP + TP) = 1 - Precision = 1 - PPV

Constructors

Constructor Summary
FalseDiscoveryRateMetric()
FalseDiscoveryRateMetric(T positiveLabel)

Properties

Property Summary
MetricDirection Direction { get; }
T MaxValue { get; }
T MinValue { get; }
bool RequiresProbabilities { get; }
bool SupportsMultiClass { get; }
string Category { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
MetricWithCI<T> ComputeWithCI(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals, ConfidenceIntervalMethod ciMethod, double confidenceLevel, int bootstrapSamples, int? randomSeed)
T Compute(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals)