You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: two more PR #1155 review comments on NBEATSBlock
1. (Major) Interpretable theta sizes weren't validated against
polynomialDegree + 1. ComputeBasisTensor + ApplyBasisExpansion both
cap usable rows at polynomialDegree + 1, so oversized thetaSizeBackcast
/ thetaSizeForecast silently allocated dead trainable weights that
couldn't influence the output. Added explicit checks for
interpretable mode.
2. (Critical) ForwardInternal's generic branch in ApplyBasisExpansion
returned theta directly instead of multiplying by the learned V_b /
V_f basis tensors. With the Phase 1 fix that made those bases
round-trip through GetParameters/SetParameters, PredictSingle would
diverge from both Forward() (which uses _basisBackcast/_basisForecast
via matmul) and from loaded-model state. Changed
ApplyBasisExpansion to take a basis tensor argument and multiply
by it in the generic branch, matching training and tape paths per
Oreshkin et al. 2020 §3.2.
Build: net10.0 clean, 0 errors.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments