JaccardScoreMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Jaccard Score (Intersection over Union): measures similarity between prediction and actual sets.
Implements: IClassificationMetric<T>
For Beginners
Jaccard score measures how much overlap exists between predicted positives and actual positives. Perfect score of 1 means complete overlap; 0 means no overlap at all. Also known as the Jaccard Index or IoU (Intersection over Union) in object detection.
How It Works
Jaccard = |TP| / (|TP| + |FP| + |FN|) = Intersection / Union
Constructors
| Constructor | Summary |
|---|---|
JaccardScoreMetric() |
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) |