Fit calibration now
Starts a calibration run of the judgment now, rather than at its next
scheduled run: useful right after posting the outcomes that
meet the minimums. The run fits every version and engine epoch with
enough outcomes, as a scheduled one does, usually within a minute or
two; read the result with GET .../calibration. A run already
waiting or running serves the request. Runs are never billed.
With a body, it is a named run: a fit on the outcomes you choose, by
where they came from and when they were observed. A named run is
listed by GET .../calibration/fits with its label and filter,
and can be pinned like any fit, but answers never read it unless you
pin one of its fits. A version and epoch whose chosen outcomes miss
the minimums is listed with not_fitted. Not on a namespace that
inherits the judgment: make it on the template.
At most one request an hour per judgment, named runs included:
within the hour, rate_limited with Retry-After, the seconds until
the next is accepted. On a template prefix, the template’s judgment,
fitted on its tenants’ pooled outcomes; on a namespace that
inherits the judgment, the same run, since that is the fit its
answers read. On every plan, like calibration.
A new fit replaces the one answers read only when it is clearly
better on the outcomes that arrived since that fit was made, and
moves the number by at least a point; otherwise the run keeps the
current fit and lists the new one beside it as its challenger (see
GET .../calibration). With {"promote": true} the run makes its
new fit current for every version and epoch that is not pinned,
tenants included. When that changes what a judgment with features
reads and other judgments read it, their answers are judged again,
billed: without confirm the response is the downstream estimate
(200) and nothing is queued; with confirm: true the run is queued
even within the hour, since you have accepted its cost. Without
readers a promote is queued at once, under the hourly limit. Not on
a namespace that inherits the judgment: promote on the template.
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.
Headers
One key per logical request, reused only on its retries. A key
belongs to one request: within your organization, the same method,
path, query and body. For 24 hours after a successful response, a
request with the key and the same body gets that response back
verbatim, with Idempotent-Replayed: true, and runs nothing. Only a
successful response is kept, so the retry of a request that failed
runs again. While the first request runs or its response is kept,
the key with a different request is idempotency_key_reused (422).
A request sent while one with its key is still running is
rate_limited with Retry-After: 1, without running: retry it to
get the first one's response. In the rare case the key can't be
checked, the request runs as if it had none.
1 - 255Path 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._:/-]+(/\*)?$Body
- Option 1
- Option 2
A named run's body, or a promote's.
Response
A promote that would judge other judgments' answers again, sent without confirm. Nothing is queued.