[ENH] Rename _pkg to _forecaster in v2 model classes #2564
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 204 lines diff across 2 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.318
Real PR Conversation Timeline
1 comments
"Review active on #2564"
general
weight: 0.35
phoeenniixx
Reference Issues/PRs
Partially addresses #2561.
What does this implement/fix? Explain your changes.
This PR handles the v2 models layer slice of #2561 (leaving v1
_pkg,docs/,extension_templates/v2/[#2484], and the test harness slice untouched):forecasterclassproperty on v2BaseModelinpytorch_forecasting/models/base/_base_model_v2.py, falling back to_pkg()when a subclass has not migrated yet and keepingBaseModel.pkgas a compatibility alias until the test utilities finish switching toforecaster._pkgto_forecaster(and updates package references in docstrings to forecaster) across all 15 v2 model classes (DLinear,FreTS,DecoderMLP_v2,ModernTCN,NHiTS_v2,PatchTST_v2,Samformer,SCINet_v2,SOFTS,TFT,TIDE,TimeXer,TSMixer,UniTS,xLSTMTime) plus the module docstring inSamformerForecaster.What should a reviewer concentrate their feedback on?
BaseModel.pkgforwarding toBaseModel.forecasterand falling back to_pkg()in_base_model_v2.pyis the right transition approach so existing v2 test utilities and in-flight v2 model PRs keep passing until the test harness slice lands.Did you add any tests for the change?
Yes, added
test_forecaster_linkage_all_v2_modelsandtest_forecaster_legacy_pkg_fallbackintests/test_models/test_base_model_v2.py.Any other comments?
No.
PR checklist