prep_fit

A fitted preprocessing step; 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 prep 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": 7
}

prep_fit {
  "table": "${input:reg}",
  "split": "${split_make}",
  "steps": [
    {
      "step": "scale",
      "columns": [
        "f0",
        "f1"
      ]
    }
  ]
}

Result

a prep fitted

JSON
{
  "ref": "sha256:332c91fc65e403fe01dea2c347bd0af197232a464f684a670ebdb4db986fbef8",
  "kind": "prep"
}

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.