Properly deprecate TimeSeriesRegressor.partial_fit method #739
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.
This PR addresses the improper deprecation of the
TimeSeriesRegressor.partial_fit
method by:Updating documentation files to use the new
update
method instead of the deprecatedpartial_fit
:examples/regression/2-advanced-analysis/plot_timeseries_enbpi.py
: Updated method calls and print statementsnotebooks/regression/ts-changepoint.ipynb
: Updated all instances ofpartial_fit
usage in code cells and textAdding version number to the deprecation warning: The warning now includes "This method will be removed in v1.1." to follow sklearn deprecation guidelines for the next minor version.
Updated test to match the new warning message format.
The
partial_fit
method has been deprecated for some time but was still being used in documentation examples. Theupdate
method provides the same functionality and automatically dispatches to the appropriate internal method based on the chosen strategy (enbpi
oraci
).Before:
After:
All existing functionality is preserved, and the deprecation warning now properly indicates when the method will be removed.
Fixes #699.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.