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#
| Name | Type | Default | Kind |
|---|---|---|---|
| latent | — | required | positional |
| y | — | required | positional |
| micro_scale | int | 1000000 | keyword-only |
| mode | str | '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.