get_model_leaderboard
Run cross-validation to rank candidate models and return the winner’s model ID, parameters, and score, optionally restricting candidates to selected models.
Instructions
Run fresh cross-validation and return ranked trials plus the winner's model ID, parameters and score. Pass models to restrict candidates. Use automl_run for full run metadata or list_experiments to find saved training records. Use export_model to fit and save a model bundle.
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": "get_model_leaderboard"
}
}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. |