MeanSquaredLogErrorMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Mean Squared Logarithmic Error (MSLE): squared version of RMSLE.

Implements: IRegressionMetric<T>

For Beginners

MSLE is useful when:

  • You care about percentage errors
  • Under-predictions should be penalized more than over-predictions
  • Target values span multiple orders of magnitude

The squared version penalizes large errors more than RMSLE.

How It Works

MSLE = (1/N) * Σ(log(1 + y_i) - log(1 + ŷ_i))²

Constructors

Constructor Summary
MeanSquaredLogErrorMetric()

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)