column, parts, and row selection. Assigns unassigned rows to named parts while keeping existing assignments. Returns the split field; poll its split status until ready or failed. To train on the result, create a slice that freezes this field.
Signature
Method signature onclient.datasets:
Parameters
string
required
Dataset ID with prefix
ds..string
default:"split"
The name of the split field. Defaults to “split”. A new name creates a field; an existing split field fills unassigned rows using its saved parts and shares. An ordinary field can be adopted if its values are part names.
{ name: string; roles: ("train" | "validate" | "test")[]; share?: undefined | number }[]
Parts with names, roles, and optional shares. Shares must total 1. New split fields default to train 0.8, validate 0.1, and test 0.1; existing split fields reuse their parts and shares. A train role cannot be combined with another role. A part may have both validate and test roles, or no roles. Omit all shares to adopt existing part values without assigning rows; adoption does not accept
seed, balanceBy, slice, or itemFilter.string
Field name or ID to balance by. Rows with each label value are distributed across parts to preserve the label mix. Rare labels may be absent from some parts.
number
Seed for repeatable assignments. The same seed and row order produce the same assignments, including across datasets. Generated when omitted and saved with the split field.
string
Assign only unassigned rows in this slice. Processing waits for a slice that is still being created. Omit both
slice and itemFilter to include all unassigned rows.object
Assign only unassigned rows matching this filter when processing starts.
Returns
Promise<DatasetField>
A field of a dataset.
DatasetFieldId
required
Dataset field ID with prefix
df..string
required
Name of the dataset field.
string | null
required
Description of the field, or null when none is set.
JsonSchema
required
JSON Schema that values in this field must satisfy.See the HTTP endpoint for the supported JSON Schema fields.
boolean
required
True when this field is excluded from pipeline input bindings. The field is still included in dataset field responses.
object | null
required
Set when this is a split field: each row’s value names its part.
DatasetFieldOperation[]
required
Operations currently writing to this field. A split or slice that reads the field is rejected while a blocking operation runs.
string
required
Time the field was created, as an ISO 8601 timestamp.
Errors
HTTP errors throwPotatoApiError. The endpoint documents these error responses:
HTTP endpoint:
POST /datasets/{datasetId}/split.