ErrorRateMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Error Rate (Misclassification Rate): 1 - Accuracy.
Implements: IClassificationMetric<T>
For Beginners
Error rate is simply the fraction of incorrect predictions:
- Range: 0 to 1, lower is better
- 0 = perfect classifier
- Complement of accuracy
How It Works
Error Rate = (FP + FN) / N = 1 - Accuracy
Constructors
| Constructor | Summary |
|---|---|
ErrorRateMetric() |
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) |