model_fit

A fitted model by family, task, features, target and seed; refuses test rows.

FitDeterministic

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
table reference yes A value's reference.
split reference no 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.

JSON
split_make {
  "table": "${input:reg}",
  "kind": "random",
  "seed": 8
}

model_fit {
  "table": "${input:reg}",
  "split": "${split_make}",
  "family": "linear",
  "target": "y",
  "features": [
    "f0",
    "f1",
    "f2",
    "f3",
    "f4"
  ]
}

Result

a linear model fitted

JSON
{
  "ref": "sha256:22d86e9fc44744e44302d3b5f1071ee437ae511980fdb4ba782f8309a6ca991d",
  "kind": "model",
  "family": "linear",
  "task": "regression",
  "fit_metrics": {
    "jitter": 0,
    "rows": 240
  }
}

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.