NormalizedMSEMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Regression
Computes Normalized Mean Squared Error (NMSE): MSE divided by variance of actuals.
Implements: IRegressionMetric<T>
For Beginners
NMSE provides a scale-independent error measure:
- NMSE = 0: Perfect predictions
- NMSE = 1: Predictions as good as predicting the mean
- NMSE > 1: Worse than predicting the mean
- Equivalent to 1 - R² when computed on the same data
How It Works
NMSE = MSE / Var(y) = Σ(y - ŷ)² / Σ(y - ȳ)²
Constructors
| Constructor | Summary |
|---|---|
NormalizedMSEMetric() |
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) |