RMSLEMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Root Mean Squared Logarithmic Error (RMSLE): measures ratio errors rather than absolute errors.

Implements: IRegressionMetric<T>

For Beginners

RMSLE is useful when:

  • You care about percentage/ratio errors rather than absolute differences
  • Under-predictions should be penalized more than over-predictions
  • The target spans several orders of magnitude (like prices or counts)

Note: Requires all values to be non-negative (≥ 0) since we take logarithms.

How It Works

RMSLE = √[(1/N) * Σ(log(1 + y_i) - log(1 + ŷ_i))²]

Constructors

Constructor Summary
RMSLEMetric()

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)