[ENH] extend sktime ForecastingOptCV with broadcasting options and returned parameters#205
Open
anirudhsengar wants to merge 8 commits intohyperactive-project:mainfrom
Open
[ENH] extend sktime ForecastingOptCV with broadcasting options and returned parameters#205anirudhsengar wants to merge 8 commits intohyperactive-project:mainfrom
sktime ForecastingOptCV with broadcasting options and returned parameters#205anirudhsengar wants to merge 8 commits intohyperactive-project:mainfrom
Conversation
… parameters Signed-off-by: Anirudh Sengar <anirudhsengar3@gmail.com>
Signed-off-by: Anirudh Sengar <anirudhsengar3@gmail.com>
fkiraly
requested changes
Nov 22, 2025
Collaborator
fkiraly
left a comment
There was a problem hiding this comment.
Nice!
Though, I think there is already automatic broadcasting in sktime - this should be activated, instead of reimplementing it.
Have a look at BaseGridSearch in sktime, and the __init__ code which handles tune_by_variable and tune_by_instance (the latter via _extend_to_all_scitypes).
Signed-off-by: Anirudh Sengar <anirudhsengar3@gmail.com>
Signed-off-by: Anirudh Sengar <anirudhsengar3@gmail.com>
fkiraly
reviewed
Nov 25, 2025
fkiraly
reviewed
Nov 25, 2025
fkiraly
reviewed
Nov 25, 2025
src/hyperactive/integrations/sktime/tests/test_sktime_estimators.py
Outdated
Show resolved
Hide resolved
fkiraly
requested changes
Nov 25, 2025
Collaborator
fkiraly
left a comment
There was a problem hiding this comment.
Great!
Only very small comments above.
Signed-off-by: Anirudh Sengar <anirudhsengar3@gmail.com>
Author
|
Done! Thank you @fkiraly for the feedback. |
Author
|
If approved, please merge sktime/sktime#9092 as well. |
fkiraly
reviewed
Nov 27, 2025
fkiraly
requested changes
Nov 27, 2025
Collaborator
fkiraly
left a comment
There was a problem hiding this comment.
Great!
Small request - please move the example from the README to the docstring, and also update the docstring in sktime/sktime#9092 so it is identical.
Author
|
Done! @fkiraly. Even updated sktime/sktime#9092. |
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
Extend
ForecastingOptCVto expose sktime’s broadcasting controls plus richer post-fit diagnostics, aligning it more closely withForecastingGridSearchCVwhile keeping Hyperactive optimizers in play. Also document the new knobs and assert the behavior via integration tests.Changes
tune_by_instance/tune_by_variableinit params. When sktime is available we reuse its delegated tagging (_set_delegated_tags+_extend_to_all_scitypes) so panel/multivariate broadcasting follows the native implementation rather than a bespoke copy.fitnow recordsscorer_,n_splits_,best_index_,best_score_,best_params_,best_forecaster_,refit_time_, and acv_results_table (the backtesting results for the winning configuration). We time refits withtime.perf_counterand keep the optimizer’s best index when available.Related Issues
Fixes #198