model_calibrate
Platt or isotonic calibration on a calibration partition.
Flags
| Flag | Value |
|---|---|
| Kind | fit: learns a value from data |
| Rows | one result, not a table |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
| Makes | a model value |
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model |
reference | yes | A value's reference. |
table |
reference | yes | A value's reference. |
split |
reference | yes | A value's reference. |
response_format |
"concise" | "detailed" | no | The byte budget: 64 KiB concise, 512 KiB detailed. |
Example
Over the example tables binary; ${input:name} is an input's reference and ${verb} the value an earlier call made.
split_make {
"table": "${input:binary}",
"kind": "stratified",
"by": "label",
"seed": 4,
"fractions": {
"train": 0.6,
"calibration": 0.2,
"test": 0.2
}
}
model_fit {
"table": "${input:binary}",
"split": "${split_make}",
"family": "naive_bayes",
"target": "label",
"features": [
"f0",
"f1",
"f2",
"f3"
]
}
model_calibrate {
"model": "${model_fit}",
"table": "${input:binary}",
"split": "${split_make}",
"method": "sigmoid"
}Result
calibrated
{
"ref": "sha256:51c0b655cb6ebba0577325f07fca9ff9c4df1b269be21a911b51e122daa6624c",
"kind": "model"
}Diagnostics
A refusal comes back as ok: false with coded diagnostics; every code, with its fix, is on the diagnostics page. A parameter that does not match the schema above is ARG_INVALID, with the parameter's path.