MarkednessMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Classification

Computes Markedness: PPV + NPV - 1 = Precision + NPV - 1.

Implements: IClassificationMetric<T>

For Beginners

Markedness measures how well the classifier “marks” the predictions:

  • +1: Perfect classifier (PPV = NPV = 1)
  • 0: Random classifier
  • -1: Perfectly wrong classifier

Markedness is the dual of Informedness in the confusion matrix. While Informedness looks at rows (actual classes), Markedness looks at columns (predicted classes).

How It Works

Markedness = PPV + NPV - 1 = Precision + NPV - 1

Constructors

Constructor Summary
MarkednessMetric()

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)