compare_models
Train and compare multiple classification or regression models on a dataset, then select a model using your chosen evaluation metric.
Instructions
Train and compare multiple models; select best by metric.
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": "compare_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cv | No | Cross-validation folds (default 5). | |
| name | Yes | Dataset filename. | |
| metric | No | Selection metric (default auto). | |
| models | No | Models to compare. | |
| 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. |