split_fold

Folds over a split: k-fold, stratified, grouped, rolling and expanding time folds.

ConstructDeterministic

Flags

Flag Value
Kind construct: makes a value from values
Rows one result, not a table
Deterministic yes
Order matters no
Decomposable no
Makes a split value

Parameters

Parameter Type Required Notes
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 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
}

split_fold {
  "table": "${input:reg}",
  "split": "${split_make}",
  "kind": "kfold",
  "k": 5
}

Result

5 folds

JSON
{
  "ref": "sha256:a46d01fa0ec5f0ef87c7ef83fdee7165054ff7c066438d30d7acaff2698a0d4a",
  "kind": "split"
}

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.