🔬  RMSLE (Root Mean Squared Logarithmic Error)

RMSLE (Root Mean Squared Logarithmic Error)#

RMSE on log-scaled values, penalising under-prediction and easing large magnitudes.

Important

✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.

What it is#

Root Mean Squared Logarithmic Error is RMSE computed on the logarithms of the predictions and actuals — the root-mean-square of the differences in log space:

\[\text{RMSLE} = \sqrt{\frac{1}{N}\sum_{i=1}^{N}\big(\log(\hat{y}_i + 1) - \log(y_i + 1)\big)^2}.\]

The +1 lets it handle zeros.

What the log changes#

Taking logs turns absolute errors into relative ones, so a fixed percentage miss costs the same whether the value is small or huge — making RMSLE robust to scale and to large outliers. It also becomes asymmetric: it penalizes under-prediction more than over-prediction.

When to use it#

RMSLE suits positive, right-skewed targets that span orders of magnitude — prices, counts, demand — and situations where under-forecasting is the costlier mistake. Its limits: it can’t take negative values, and its log scaling makes the raw number less intuitive than RMSE.


Theme: Model Evaluation & Uncertainty  ·  All terminology



See also

Source article Adapted (context, re-expressed) in our own words from: RMSLE (Root Mean Squared Logarithmic Error) (insightful-data-lab.com).

Tags: purpose: reference topic: terminology level: intermediate