Repository navigation
fix: preserve AutoTheta configuration across forecast paths - #1240
Closed
Dresden Goehner (DresdenGman) wants to merge 2 commits into
Closed
Dresden Goehner (DresdenGman) wants to merge 2 commits into
Dresden Goehner (DresdenGman) wants to merge 2 commits into
Conversation
Dresden Goehner (DresdenGman)
force-pushed
the
fix/autotheta-preserve-configuration
branch
from
November 3, 2026 03:45
19a689a to
517c4e5
Compare
Contributor
Author
|
Hi, following up on this PR - I have rebased it onto current main (f9cd2f2). The one conflict was in AutoTheta.forecast in models.py: #1241 (my earlier fixed-theta change, already merged) added theta=self.theta at the same spot where this PR adds distribution=self.distribution. Both lines are kept, and the diff against main is otherwise unchanged (3 files, +40/-0). Re-verified locally after the rebase: the new regression tests pass (9/9), the full TestTheta class passes (13/13), and the theta parameter tests from #1241 pass (8/8). CI is re-running on the new head. Happy to make any further changes if needed - thanks! |
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.
Summary
AutoTheta.forecastforward_thetaProblem
The regular
fitpath passes bothdistributionanddecomposition_typeintoauto_theta, but two equivalent call paths dropped part of that configuration:forecastpath omitteddistribution, silently reverting non-normal models to normal errorsforward_thetaomitted both values, silently reverting the fitted model to normal errors and multiplicative decompositionAs a result, equivalent public APIs could return materially different point forecasts and prediction intervals. On current
main, the regression cases in this PR differed by as much as 39.80 across forecast outputs for non-normal distributions and 337.41 across forward outputs for additive decomposition. With the fix, every tested path agrees exactly.Validation
104 passedacrossTestTheta,tests/test_theta.py, andtests/test_distributions.pyThis is a focused follow-up to the distribution support introduced in #1116.