Interface: ConformalPrediction
@kortexya/reasoninglayer / ConformalPrediction
Interface: ConformalPrediction
Section titled “Interface: ConformalPrediction”Defined in: src/types/conformal.ts:149
Conformal prediction result for a single test input.
Properties
Section titled “Properties”abstains
Section titled “abstains”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
Section titled “inputId”inputId:
string
Defined in: src/types/conformal.ts:157
Input ID echoed from the request.
predictionSet
Section titled “predictionSet”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
Section titled “topClass”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
Section titled “topClassNonConformity”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.