Skip to content

Interface: ConformalCalibrateResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConformalCalibrateResponse

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

Response of POST /api/v1/conformal/calibrate.

algorithm: string

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

Algorithm tag ("split-conformal-v2").


alpha: number

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

Target miscoverage α echoed from the request.


empiricalCoverage: number

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

Fraction of calibration samples covered by τ (sanity check; should be ≥ 1 − α by construction).


informative: boolean

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

Whether the threshold restricts the bounded score universe.


meetsTargetCoverage: boolean

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

true if the empirical coverage on the calibration set meets the target 1 − α (should always be true for a valid calibration).


nSamples: number

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

Number of calibration samples consumed.


quantileRank: number

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

One-based rank, including the unobserved nSamples + 1 full-set rank.


threshold: number

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

Computed non-conformity threshold τ. Pass this to predict. Each supplied candidate label is included when its own score 1 - p is at most τ. Threshold 1 includes every supplied label.