Description
Require positive actual and predicted and return abs(log(predicted / actual)).
Logarithmic errors compare multiplicative differences. Positive-domain requirements and any added offset change both valid inputs and the interpretation of small values.
Require positive actual and predicted and return abs(log(predicted / actual)).
When to use this tool
Use Absolute Log Error Single Pair when you need a single log-error term or a logarithm-domain check.
How to use the tool and how it works
- Enter actual, predicted. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read error. Use the output convention below.
Require positive actual and predicted and return abs(log(predicted / actual)).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| actual | Observed value on the same scale and unit as its prediction. | Required. Finite number; strictly above 0. |
| predicted | Predicted value on the same scale and unit as actual. | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| error | Error | Required. Finite number. |
{
"input": {
"actual": 2,
"predicted": 4
},
"output": {
"error": 0.6931471805599453
}
} Limitations and assumptions
- Values must share a unit; this is an unbounded natural-log ratio error without zero handling or dataset aggregation.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Choose a documented offset and aggregation policy and compare errors on the original scale where useful.
References
Similar or alternative tools
- Metrics: Rmsle Single Pair Domain Check
Subtract log1p(actual) from log1p(forecast), then return that residual, its square, and its absolute value.
- Rmsle Log Offset Domain Check
Add positive offset separately to actual and predicted.