split_dataset
Split a dataset into training, validation, and test sets using methods like random, stratified, time-series, or group-based partitioning.
Instructions
Split dataset into train/validation/test sets
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_name": "<dataset_name>",
"split_method": "<split_method>"
},
"name": "split_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_name | Yes | Name of the dataset to split | |
| split_method | Yes | Method for splitting the dataset | |
| test_size | No | Proportion of data for test set | |
| val_size | No | Proportion of data for validation set (creates 70/20/10 split by default) | |
| target_column | No | Target column for stratified splitting | |
| time_column | No | Time column for time-series splitting | |
| group_column | No | Group column for group-based splitting | |
| random_state | No | Random seed for reproducibility |