Skip to content

Interface: ConformalPrediction

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConformalPrediction

Defined in: src/types/conformal.ts:149

Conformal prediction result for a single test input.

abstains: boolean

Defined in: src/types/conformal.ts:155

true when the prediction set is empty. The classifier’s confidence in every class is too low relative to the calibrated threshold — the model abstains.


inputId: string

Defined in: src/types/conformal.ts:157

Input ID echoed from the request.


predictionSet: string[]

Defined in: src/types/conformal.ts:164

Conformal prediction set: the set of classes whose non-conformity score is ≤ τ, evaluated as 1 - classScores[y] <= τ to preserve the original score comparison. Sorted alphabetically. The caller is responsible for supplying the complete label universe.


topClass: string

Defined in: src/types/conformal.ts:169

The most-confident class (argmax of classScores). May or may not be in the prediction set depending on the threshold.


topClassNonConformity: number

Defined in: src/types/conformal.ts:176

Non-conformity score of the most-confident class: 1 − max(classScores). Informational; compare against threshold in the applied parameters to understand how close the top prediction is to the coverage boundary.