FowlkesMallowsMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes the Fowlkes-Mallows Index: geometric mean of precision and recall.
Implements: IClassificationMetric<T>
For Beginners
The Fowlkes-Mallows index:
- Geometric mean of precision and recall
- Less sensitive to imbalanced data than arithmetic mean
- Range: 0 to 1, higher is better
- Often used in clustering evaluation, applicable to classification
How It Works
FM = sqrt(PPV × TPR) = sqrt(Precision × Recall)
Comparison to F1:
- F1 = harmonic mean (penalizes low values more)
- FM = geometric mean (balanced between arithmetic and harmonic)
Constructors
| Constructor | Summary |
|---|---|
FowlkesMallowsMetric() |
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) |