Skip to content

[ENH] Add online regressor support and River adapter#1068

Open
patelchaitany wants to merge 2 commits into
sktime:mainfrom
patelchaitany:enh/river-online-regressor
Open

[ENH] Add online regressor support and River adapter#1068
patelchaitany wants to merge 2 commits into
sktime:mainfrom
patelchaitany:enh/river-online-regressor

Conversation

@patelchaitany

Copy link
Copy Markdown
Member

Reference Issues/PRs

#1066

What does this implement/fix? Explain your changes.

This PR adds the foundation for online regression in skpro, including a new regressor_online scitype and BaseOnlineRegressor with capability:update and capability:pred_int. It introduces the capability:pred_int tag and gates probabilistic prediction methods on regressors that do not support them. It also adds RiverRegressor as a point-prediction adapter for River models, with deepcopy-based cloning and coerce_to_skpro_regressor() for wrapping raw River estimators.

Does your contribution introduce a new dependency? If yes, which one?

No

What should a reviewer concentrate their feedback on?

Did you add any tests for the change?

Any other comments?

PR checklist

For all contributions
  • I've added myself to the list of contributors with any new badges I've earned :-)
    How to: add yourself to the all-contributors file in the skpro root directory (not the CONTRIBUTORS.md). Common badges: code - fixing a bug, or adding code logic. doc - writing or improving documentation or docstrings. bug - reporting or diagnosing a bug (get this plus code if you also fixed the bug in the PR).maintenance - CI, test framework, release.
    See here for full badge reference
  • The PR title starts with either [ENH], [MNT], [DOC], or [BUG]. [BUG] - bugfix, [MNT] - CI, test framework, [ENH] - adding or improving code, [DOC] - writing or improving documentation or docstrings.
For new estimators
  • I've added the estimator to the API reference - in docs/source/api_reference/taskname.rst, follow the pattern.
  • I've added one or more illustrative usage examples to the docstring, in a pydocstyle compliant Examples section.
  • If the estimator relies on a soft dependency, I've set the python_dependencies tag and ensured
    dependency isolation, see the estimator dependencies guide.

@patelchaitany patelchaitany force-pushed the enh/river-online-regressor branch from 88ea31c to 732a597 Compare June 10, 2026 19:31
@patelchaitany patelchaitany marked this pull request as draft June 10, 2026 19:32
@patelchaitany patelchaitany force-pushed the enh/river-online-regressor branch 2 times, most recently from 6ca8dfc to 57f3208 Compare June 11, 2026 06:41
@patelchaitany patelchaitany marked this pull request as ready for review June 11, 2026 09:17
Add River adapter package (utils, clone, RiverRegressor) and a
coerce_to_skpro_regressor helper. Introduce BaseOnlineRegressor and
capability:pred_int tag; update BaseProbaRegressor to check pred_int for
probabilistic methods.
@patelchaitany patelchaitany force-pushed the enh/river-online-regressor branch 2 times, most recently from ed314f0 to 4424926 Compare June 14, 2026 02:13

@fkiraly fkiraly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Though I think there is somet duplication going on.

  • I think the new base class, BaseOnlineRegressor, can be merged into BaseProbaRegressor, there is no substantial added functionality.
  • The new jackknife-plus regressor can be merged into the existing one (the non-MAPIE regressor), simply add the update logic.

@patelchaitany patelchaitany force-pushed the enh/river-online-regressor branch from 4424926 to 90cd8a6 Compare June 15, 2026 08:05
@patelchaitany patelchaitany requested a review from fkiraly June 15, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants