[ENH] Add minimal vignette tests for v2 design and fix default datamodule compatibility #2475
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 332 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2475"
general
weight: 0.35
phoeenniixx
Reference Issues/PRs
Fixes #2469. See also #2434.
What does this implement/fix? Explain your changes.
This PR addresses issue #2469 by adding end-to-end minimal vignette tests for all v2 forecasters and fixing a default parameter incompatibility between tree-decomposition models (such as
SCINetForecaster) andEncoderDecoderTimeSeriesDataModule:1. Updated Default
max_encoder_lengthto 32:- Changed the default
max_encoder_lengthinEncoderDecoderTimeSeriesDataModulefrom 30 to 32 (a power of 2: $2^5$).- This ensures default context lengths are divisible by 2, 4, 8, 16, and 32, resolving the failure reported in PR #2434 discussion_r4231012615 where
SCINetForecaster()with defaultnum_levels=3failed due to30 % (23) != 0.2. Added Generic
test_minimal_vignetteinTestAllPtForecastersV2:- Added
_make_minimal_vignette_datahelper inpytorch_forecasting/tests/test_all_v2/utils.py.- Added
test_minimal_vignettetoTestAllPtForecastersV2inpytorch_forecasting/tests/test_all_v2/test_all_estimators_v2.pyto ensure every current and future v2 forecaster automatically runs a minimal vignette with all defaults.3. Added Dedicated Tests in
tests/test_models/test_minimal_vignette_v2.py**:-
test_minimal_vignette_all_models_defaults: Tests all 11 v2 forecasters (DLinearForecaster,DecoderMLPForecaster,FreTSForecaster,PatchTSTForecaster,SCINetForecaster,SOFTSForecaster,SamformerForecaster,TFTForecaster,TIDEForecaster,TimeXerForecaster,xLSTMTimeForecaster) end-to-end with defaults.-
test_scinet_default_compatibility_regression: Targeted regression test reproducing the exact issue from #2469.What should a reviewer concentrate their feedback on?
max_encoder_length: int = 32as default inEncoderDecoderTimeSeriesDataModule.Did you add any tests for the change?
Yes:
test_minimal_vignetteinpytorch_forecasting/tests/test_all_v2/test_all_estimators_v2.pytests/test_models/test_minimal_vignette_v2.py(test_minimal_vignette_all_models_defaultsandtest_scinet_default_compatibility_regression)Any other comments?
Dependent on #2434. Once #2434 is merged into
v2-dev, this PR will automatically update to show only commit 4af120f.PR checklist