prepare_dataset
Set the target column, task type, and train/test split, then fit preprocessing on training data only to avoid leakage before model training.
Instructions
Define target and task type; fit preprocessing on training data only.
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": {
"name": "<name>",
"target_column": "<target_column>",
"task_type": "<task_type>"
},
"name": "prepare_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Dataset filename. | |
| stratify | No | Stratify split (classification only, default true). | |
| task_type | Yes | 'classification' or 'regression'. | |
| test_size | No | Test fraction (default 0.2). | |
| random_state | No | Random seed (default 42). | |
| target_column | Yes | Target variable column. |