feat: add compare_estimators_tool for agentic model selection#370
Open
rupeshca007 wants to merge 1 commit into
Open
feat: add compare_estimators_tool for agentic model selection#370rupeshca007 wants to merge 1 commit into
rupeshca007 wants to merge 1 commit into
Conversation
- New compare_estimators_tool: evaluates multiple sktime forecasters on a dataset via expanding-window cross-validation and returns a ranked leaderboard with the best model identified. Core building block for agentic model selection workflows. - Registered tool in server.py (list_tools + call_tool dispatcher) and ools/__init__.py - Added missing horizon validation tests for it_predict_tool and it_predict_async_tool (closes sktime#367)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #369
What this adds
A new
compare_estimators_toolMCP tool that enables agentic model selection directly from natural language prompts.How it works
compare_estimators(dataset="airline", estimator_names=[...])Example output
{ "success": true, "best_model": "NaiveForecaster", "best_score": 0.127075, "leaderboard": [ {"rank": 1, "estimator": "NaiveForecaster", "test_MeanAbsolutePercentageError": 0.127075, "status": "ok"}, {"rank": 2, "estimator": "ThetaForecaster", "test_MeanAbsolutePercentageError": 0.129265, "status": "ok"} ], "metric_used": "test_MeanAbsolutePercentageError", "cv_folds": 3, "dataset": "airline", "failed": [] }Files changed
src/sktime_mcp/tools/compare_estimators.py- new tool (builds onevaluate_estimator_tool)src/sktime_mcp/tools/__init__.py- registeredcompare_estimators_toolsrc/sktime_mcp/server.py- registered tool inlist_tools()andcall_tool()dispatcher