MSEMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Mean Squared Error (MSE): average squared difference between predictions and actuals.

Implements: IRegressionMetric<T>

For Beginners

MSE penalizes large errors more heavily than small ones due to squaring. Good for optimizing models (differentiable), but harder to interpret than MAE.

How It Works

MSE = (1/N) * Σ(y_i - ŷ_i)²

Constructors

Constructor Summary
MSEMetric()

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)