Skip to content

Interface: ConformalPrediction

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Conformal / ConformalPrediction

Interface: ConformalPrediction

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

Conformal prediction result for a single test input.

Properties

abstains

abstains: boolean

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

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

inputId: string

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

Input ID echoed from the request.


predictionSet

predictionSet: string[]

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

Conformal prediction set: the set of classes whose non-conformity score is ≤ τ. A class y is included iff classScores[y] ≥ 1 − τ. Sorted alphabetically.


topClass

topClass: string

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

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


topClassNonConformity

topClassNonConformity: number

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

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