automl_run
Runs a synchronous cross-validation search across selected models, ranks trials, returns the winner and run metadata, and optionally tunes the top candidate while reserving split-manifest test rows.
Instructions
Run a fresh, synchronous cross-validation search and return ranked trials, winner and run metadata. Optionally tune the leading candidate when Optuna and budget remain. Provide a split_manifest_id to reserve its test rows. Use tune_model for one algorithm. Search returns scores and parameters without saving fitted models.
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": "automl_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cv | No | Cross-validation folds (default 3). | |
| name | Yes | Dataset filename. | |
| metric | No | Selection metric. auto (default) uses roc_auc for binary classification, f1 for multiclass classification or r2 for regression. Loss metrics rank lowest first. | |
| models | No | Ordered task-specific model IDs. Omit for defaults. Both tasks support decision_tree, random_forest, extra_trees, hist_gradient_boosting, svm, knn. Classification also has logistic_regression; regression has linear_regression and ridge_regression. Caps may stop search before all models are scored. Ties retain evaluation order. | |
| delimiter | No | CSV delimiter character: comma (,), semicolon (;), tab (\t) or pipe (|). Omit to detect it automatically. | |
| task_type | Yes | 'classification' or 'regression'. | |
| max_trials | No | Total candidate and tuning trials, 1–50 (default 10). | |
| random_state | No | Random seed (default 42). | |
| target_column | Yes | Target variable column. | |
| exclude_columns | No | Feature columns to exclude before preprocessing/training. | |
| max_time_seconds | No | Shared candidate and tuning time budget in seconds (default 600). A trial already in progress may finish after the deadline. | |
| split_manifest_id | No | ID of a validated split manifest to enforce indices. |