PrevalenceThresholdMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Prevalence Threshold: the prevalence at which the test would have 50% PPV.
Implements: IClassificationMetric<T>
For Beginners
Prevalence Threshold tells you the minimum disease prevalence needed:
- Below this prevalence, PPV drops below 50% (more false positives than true positives)
- Lower is better (test is useful even for rare conditions)
- Useful for evaluating screening tests for rare diseases
How It Works
PT = sqrt(FPR) / (sqrt(TPR) + sqrt(FPR))
Constructors
| Constructor | Summary |
|---|---|
PrevalenceThresholdMetric() |
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) |