Skip to content

Main content

Mae Single Observation Gradient Tool

Compute mae single observation gradient from explicit bounded inputs.

Loading tool…

Description

Require actual unequal to predicted and return sign(predicted - actual) as the gradient with respect to predicted.

Signed errors preserve direction while absolute or squared errors emphasize magnitude. Their gradients and small-residual approximations represent specific mathematical terms rather than complete performance evaluations.

Require actual unequal to predicted and return sign(predicted - actual) as the gradient with respect to predicted.

When to use this tool

Use Mae Single Observation Gradient when you need an explicit error, gradient, or local loss component.

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 gradient. Use the output convention below.

Require actual unequal to predicted and return sign(predicted - actual) as the gradient with respect to predicted.1

Input fieldMeaning and unitsAccepted input
actualObserved value on the same scale and unit as its prediction.Required. Finite number.
predictedPredicted value on the same scale and unit as actual.Required. Finite number.
Output fieldInterpretationReturned shape
gradientGradientRequired. Safe integer.
json
{
  "input": {
    "actual": 2,
    "predicted": 5
  },
  "output": {
    "gradient": 1
  }
}

Limitations and assumptions

  • Equality is rejected because absolute error is nondifferentiable there; use an explicit equality subgradient policy separately.
  • 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

Assess a full error distribution and keep the sign and aggregation conventions consistent across models.

References

  1. Calculation and input contract: metrics/mae-single-observation-gradient — tool.io

Similar or alternative tools