PositivePredictiveValueMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Positive Predictive Value (PPV): same as Precision but named differently in medical contexts.
Implements: IClassificationMetric<T>
For Beginners
PPV answers: “If the test is positive, what’s the probability of disease?”
- Same formula as Precision
- Common terminology in medical/diagnostic testing
- Heavily influenced by prevalence
- Even with 99% sensitivity/specificity, PPV can be low for rare diseases
How It Works
PPV = TP / (TP + FP) = Precision
Constructors
| Constructor | Summary |
|---|---|
PositivePredictiveValueMetric() |
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) |