Repository navigation
[DOC] use the time_series keyword in the v2 docs and tutorials - #2481
Open
Chetansahney wants to merge 1 commit into
Open
Chetansahney wants to merge 1 commit into
Chetansahney wants to merge 1 commit into
Conversation
sktime#2423 renamed the datamodules' `time_series_dataset` argument to `time_series`. models_v2.rst and both v2 tutorials still used the old name, so ptf_V2_example.ipynb raised a TypeError and the notebook CI job fails on v2-dev. tslib_v2_example.ipynb also listed `future_know_feature` in `num`, a typo for `future_known_feature`, which TimeSeries now rejects.
Chetansahney
requested review from
benHeid,
fkiraly,
jdb78 and
phoeenniixx
as code owners
October 25, 2026 13:02
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v2-dev #2481 +/- ##
=========================================
Coverage ? 87.95%
=========================================
Files ? 203
Lines ? 11385
Branches ? 0
=========================================
Hits ? 10014
Misses ? 1371
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Reference Issues/PRs
Follows up #2423. Related: #2480.
What does this implement/fix? Explain your changes.
#2423 renamed the datamodules'
time_series_datasetargument totime_series, butdocs/source/models_v2.rstand both v2 tutorials still used the old name.EncoderDecoderTimeSeriesDataModulehas no**kwargs, soptf_V2_example.ipynbraisesand the "Run notebook tutorials" job fails on
v2-devitself (both of its last two pushes), and therefore on every PR intov2-dev.This changes the keyword in the
models_v2.rstexample, in the code cells of both tutorials, and in the two argument lists inptf_V2_example.ipynb.tslib_v2_example.ipynbfails even earlier onv2-dev: itsTimeSerieslistsfuture_know_featureinnum, a typo for thefuture_known_featurecolumn, andTimeSeriesnow checks column names, so that cell raises aValueError. Fixed as well. Its datamodule cell would not have raised on the old keyword, sinceTslibDataModuletakes**kwargs; it would have built a module without data.Only the changed source lines differ; stored outputs are untouched.
What should a reviewer concentrate their feedback on?
ForecasterAPI anyway; this just gets them running onv2-devuntil then.Did you add any tests for the change?
No tests; this is docs only. Both notebooks execute end to end with the same command as
build_tools/run_examples.sh(jupyter nbconvert --execute, 1200 s timeout):ptf_V2_example.ipynbin 25 s andtslib_v2_example.ipynbin 46 s. Before this change the first failed with theTypeErrorabove and the second with theValueError. The pre-commit hooks, including thenbqaones, pass.Any other comments?
tslib_v2_example.ipynbalso passescategorical_encoders=toTslibDataModule, which has no such argument. It is absorbed by**kwargsand ignored, onmainas well asv2-dev. I left it alone here since it is not from #2423, but the tutorial suggests it has an effect.PR checklist