Get a calibration fit with its map
One fit, from the newest run that holds it, with the map or model
that turns the engine’s raw value into the calibrated one (model)
and the range of raw values it was fitted on (range). From these
you can reproduce any calibrated number an answer read with this fit
shows. not_found when no run of the judgment holds the id.
Authorizations
An organization API key. Keys carry a role (read_write or
read_only) and may be restricted to a namespace prefix such as
acme/*, or to one namespace such as acme/prod/tenant_1. A prefix
matches on a / boundary: acme/prod/tenant_1* covers
acme/prod/tenant_1 and everything under acme/prod/tenant_1/,
never acme/prod/tenant_12.
Path Parameters
A namespace name, or a template prefix ending in /*, with any
/ sent as %2F: acme%2Fprod%2Ftenant_123 or acme%2Fprod%2F*.
A namespace name, or a template prefix: a namespace path ending in
/*, such as acme/prod/*, which every namespace under acme/prod/
inherits judgments from. Up to 256 bytes. Never exactly
. or .., which a URL path can't carry.
1 - 256^(?!\.\.?$)[A-Za-z0-9._:/-]+(/\*)?$A judgment, attribute or threshold name. Names are path segments in field references, so they never contain ..
1 - 128^[A-Za-z0-9_-]+$A fit's id, as answers and GET .../calibration/fits show it.
^fit_[0-9a-f]{16}$Response
The fit.
One fit of one run, for one version and engine epoch.
The run, newest first; ids sort by when the run was made.
RFC 3339, UTC.
Why a run ran. nightly: the scheduled run, or one brought forward
(after outcomes first arrive, an engine drift or switch, or a lifted
pin). fit_now: POST .../calibration/fit. pin: a pin, which
writes a run with the pinned fit. named: a named run.
shadow: a composite's combiner fitted by its confirmed shadow job.
nightly, fit_now, pin, named, shadow x >= 1The fit's id. Null when the fit did not beat the raw answers on held-out outcomes, or a named run's outcomes missed the minimums (not_fitted).
Whether the fit beat the raw answers on held-out outcomes when it was made, so answers of its run read it.
early and full as calibrated.stage means them; features for a judgment whose p reads its features and the engine's p together.
early, full, features x >= 0True when the run holds this fit because it is pinned.
True on the fits answers of this version and epoch read now.
How the fit turns the engine's raw value into the calibrated one,
given as the formula's terms. Write logit(p) = ln(p / (1 - p)),
with p first clamped to [0.005, 0.995], and σ(z) = 1 / (1 + e^-z).
log_odds_linear, a bool: calibratedp=σ(a · logit(p) + b).temperature: a choice or score's calibrated distribution issoftmax(ln(p_i) / t)over its options or levels (eachp_ifirst clamped as above); on a bool,σ(logit(p) / t).points: linear interpolation of the raw value through the points (x,y), flat beyond the ends; a choice or score maps each option's or level's probability and divides by their sum.features, a bool withfeatures:σ(intercept + Σ wᵢ · (xᵢ - cᵢ) / sᵢ)overinputs, where the first input, namedlog_odds, islogit(p)and the rest are the features' raw values; a missing value contributes 0.features_candidates, a choice among candidates:existenceis thefeaturesform on1 - escape_p, the chance a match exists; among the candidates with any probability, candidatej's share of it issoftmax(log_probability_weight · ln(p_j) + Σ wᵢ · (x_jᵢ - cᵢ) / sᵢ)over itsinputs;escape_pis1 -the existence chance.features_options, a fixed choice:softmaxover the options oflog_probability_weight · ln(p_k) + intercept_against_escape + Σ wₖᵢ · (xᵢ - cᵢ) / sᵢ,weightsper option inoptions' order, and overnone_of_the_aboveoflog_probability_weight · ln(p_escape).features_levels, a score: the chance of a level at or below leveljisσ(cuts_j + cumulative_log_odds_weight · logit(C_j) - Σ wᵢ · (xᵢ - cᵢ) / sᵢ),C_jthe engine's chance of a level at or belowj; each level's chance is the difference. Null when the fit did not beat the raw answers.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
The lowest and highest raw value the fit was made on; outside it, a calibrated number is extrapolated.
A named run's label.
The outcomes a named run is fitted on. An outcome left out still counts as an answer's outcome, so it never makes that answer an implicit negative.
For a pinned fit, the run it was pinned from.
Why there is no calibration or no threshold recommendation.
message says what to post, such as "Only positive outcomes so far:
post outcomes for documents where it did not happen." when every
outcome is true.
Joined outcomes by where they came from, summing to outcomes.
all, queue outcomes: the epoch's own outcomes. replay: after an engine drift,
until the new epoch's own outcomes meet the minimums, the fit also
rests on outcomes of earlier epochs, each with the new engine's answer
to the context the outcome labelled; after a
version was activated on another engine, on the outcomes of the
version it replaced, the same way.
outcomes, replay The fit's held-out test as it was made, with its ranking on a bool.
For a judgment with features, the same test of a fit on the features alone, without the engine's answer. Null elsewhere.
current: the fit the run kept or made current. challenger: the run's new fit, kept beside it, listed directly under it. Absent on runs made before calibration kept the current fit.
current, challenger On a current row, what the run did with the version and epoch's fit. Null on a challenger row.
first, promoted, withdrawn, held, pinned Why the current fit was kept, when it was.
too_few_outcomes_since, not_clearly_better, too_small_a_move, pinned, too_few_outcomes The run's new fit against the current one, on the outcomes since the current fit's run.
On a judgment with features, the fit that reads them beside
the engine's answer, whether answers read it or not: engine_weight
and each feature read on its own, as the report's
held_out_metrics.features gives them, and penalty, how
strongly that fit pulls every weight toward 0, recorded so a
change of it shows per fit. Null on any other fit.