Skip to content

Main content

Absolute Log Error Single Pair Tool

Calculate absolute log error single pair from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter actual, predicted. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read error. Use the output convention below.

Require positive actual and predicted and return abs(log(predicted / actual)).1

Input fieldMeaning and unitsAccepted input
actualObserved value on the same scale and unit as its prediction.Required. Finite number; strictly above 0.
predictedPredicted value on the same scale and unit as actual.Required. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
errorErrorRequired. Finite number.
json
{
  "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

  1. Calculation and input contract: metrics/absolute-log-error-single-pair — tool.io

Similar or alternative tools