model_inspect
Family, version, spec, feature schema and a summary of the learned state.
Flags
| Flag | Value |
|---|---|
| Kind | query: reads values |
| Rows | one result, not a table |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
| Makes | no value |
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model |
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 reg; ${input:name} is an input's reference and ${verb} the value an earlier call made.
split_make {
"table": "${input:reg}",
"kind": "random",
"seed": 7
}
model_fit {
"table": "${input:reg}",
"split": "${split_make}",
"family": "linear",
"target": "y",
"features": [
"f0",
"f1",
"f2",
"f3",
"f4"
]
}
model_inspect {
"model": "${model_fit}"
}Result
a linear model
{
"classes": 0,
"family": "linear",
"family_version": 1,
"features": {
"fields": [
{
"metadata": {},
"name": "f0",
"nullable": false,
"type": {
"kind": "float64"
}
},
{
"metadata": {},
"name": "f1",
"nullable": false,
"type": {
"kind": "float64"
}
},
{
"metadata": {},
"name": "f2",
"nullable": false,
"type": {
"kind": "float64"
}
},
{
"metadata": {},
"name": "f3",
"nullable": false,
"type": {
"kind": "float64"
}
},
{
"metadata": {},
"name": "f4",
"nullable": false,
"type": {
"kind": "float64"
}
}
],
"metadata": {}
},
"fit_metrics": {
"jitter": 0,
"rows": 240
},
"hash": "sha256:0fb63984bb5513452d757abeb8d269ad8a9a1e511775b4561a44c0b209d5344c",
"params": {
"family": "linear",
"features": [
"f0",
"f1",
"f2",
"f3",
"f4"
],
"fit_intercept": true,
"target": "y",
"task": "regression"
},
"state": {
"kind": "linear",
"lengths": [
5,
1
]
},
"target": {
"fields": [
{
"metadata": {},
"name": "y",
"nullable": false,
"type": {
"kind": "float64"
}
}
],
"metadata": {}
},
"task": "regression",
"trained_on": {
"role": "train",
"rows": 240,
"split": "sha256:bcf7ab9c8e4992dcfa1ed670dd74e18713fd94413d52357d2e7590ab72a72906"
}
}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.