Skip to content

Main content

Ordinal Label Adjacent Threshold Gap

Subtract explicit adjacent ordinal cutpoints, retaining nonpositive gaps as ordering diagnostics.

Loading tool…

Description

Measure a supplied upper-minus-lower ordinal-threshold gap.

Classification terms depend on label vocabularies, decision thresholds and denominator definitions. One class recall is not a full balanced-accuracy metric, and a row or column total is not automatically a precision or recall denominator. Empty or zero-total cases need an explicit defined flag or convention.

Measure a supplied upper-minus-lower ordinal-threshold gap.

When to use this tool

Use Ordinal Label Adjacent Threshold Gap when you already have lowerThreshold, upperThreshold and need to measure a supplied upper-minus-lower ordinal-threshold gap.

How to use the tool and how it works

  1. Enter lowerThreshold, upperThreshold. 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 signedGap. Use the output convention below.

Return upperThreshold-lowerThreshold without requiring order.1

Input fieldMeaning and unitsAccepted input
lowerThresholdLower ThresholdRequired. Finite number.
upperThresholdUpper ThresholdRequired. Finite number.
Output fieldInterpretationReturned shape
signedGapupperThreshold-lowerThreshold, retaining a negative gap instead of enforcing ordinal order.Required. Finite number.
json
{
  "input": {
    "lowerThreshold": 12,
    "upperThreshold": 17
  },
  "output": {
    "signedGap": 5
  }
}

Limitations and assumptions

  • Negative gaps are retained. No threshold fit, ordinal model, calibrated probability or valid class ordering is established.
  • 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

Evaluate the complete prediction set, confusion structure and decision policy. Report missingness, class scope and uncertainty with the full metric; local threshold flags or one-cell fractions cannot characterize overall model performance.

References

  1. Calculation and input contract: classification/ordinal-label-adjacent-threshold-gap — tool.io

Similar or alternative tools