Split a dataset into parts
Send an optional split field name in 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.
Authorizations
Enter ApiKey <your-api-key> in Authorization, including the ApiKey prefix. In cURL and Python samples, <api-key> means this full value. The TypeScript SDK adds the prefix for you.
Path Parameters
Dataset ID with prefix ds..
^ds\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Body
Assign unassigned rows to split parts using their shares. Existing assignments are retained and count toward the target proportions.
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.
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.
1 - 128^[a-z]([a-z0-9_]*[a-z0-9])?$Assign only unassigned rows matching this filter when processing starts.
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.
1 - 10 elementsSeed 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.
0 <= x <= 2147483647Assign 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.
^dsl\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Response
The split field, filling or ready
A field of a dataset.
Time the field was created, as an ISO 8601 timestamp.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Description of the field, or null when none is set.
Dataset field ID with prefix df..
^df\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$True when this field is excluded from pipeline input bindings. The field is still included in dataset field responses.
JSON Schema that values in this field must satisfy.
Name of the dataset field.
Operations currently writing to this field. A split or slice that reads the field is rejected while a blocking operation runs.
A background operation writing into a dataset field.
- Option 1
- Option 2
- Option 3
Set when this is a split field: each row's value names its part.