InformednessMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Informedness (Youden’s J statistic): TPR + TNR - 1 = Recall + Specificity - 1.
Implements: IClassificationMetric<T>
For Beginners
Informedness measures how “informed” the classifier is:
- +1: Perfect classifier
- 0: Random classifier (no better than chance)
- -1: Perfectly wrong classifier
Also known as Youden’s J statistic. It’s the optimal threshold point on a ROC curve and considers both classes equally important.
How It Works
Informedness = TPR + TNR - 1 = Sensitivity + Specificity - 1
Constructors
| Constructor | Summary |
|---|---|
InformednessMetric() |
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) |