compileml.artifact

fit_isotonic_table

def fit_isotonic_table(latent, y, *, micro_scale: int = 1000000, mode: str = 'linear_int') -> dict

from compileml.artifact import fit_isotonic_table

Isotonic PD calibration frozen into integer thresholds.

latent is the (clipped) model latent on a calibration sample; y the binary outcomes. Returns the artifact's calibration block: strictly increasing f_micro, non-decreasing pd_ppm.

Parameters#

NameTypeDefaultKind
latent—requiredpositional
y—requiredpositional
micro_scaleint1000000keyword-only
modestr'linear_int'keyword-only

Returns#

dict

Raises#

  • ValueError

Read from the function body and the private helpers it calls, not inferred. A function that raises nothing has no section here.