PositiveLikelihoodRatioMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Positive Likelihood Ratio (LR+): Sensitivity / (1 - Specificity) = TPR / FPR.
Implements: IClassificationMetric<T>
For Beginners
Positive Likelihood Ratio:
- How much more likely a positive test is in disease vs healthy
- LR+ > 10: Strong evidence for disease
- LR+ 5-10: Moderate evidence
- LR+ 2-5: Weak evidence
- LR+ = 1: No diagnostic value
How It Works
LR+ = Sensitivity / (1 - Specificity) = TPR / FPR
Clinical use: Multiply pre-test odds by LR+ to get post-test odds.
Constructors
| Constructor | Summary |
|---|---|
PositiveLikelihoodRatioMetric() |
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) |