Repository navigation
Conversation
This was referenced Nov 23, 2026
bashtage
force-pushed
the
wip-uc-summary-model-name
branch
2 times, most recently
from
November 25, 2026 12:13
6f7b168 to
a3e838e
Compare
…mmary
The summary of UnobservedComponents results names the model by the trend
specification (trend_specification), followed by the other components.
trend_specification is None for the two combinations of level and trend
components without a name: no level or trend component (trend mask 0, for
example autoregressive=1 only, a stochastic seasonal or a stochastic
cycle only), and a stochastic level and a stochastic trend without an
irregular component (trend mask 30). The summary then showed
"Model: None", followed by "+ AR(1)" (or the other components).
Changes
- Without a level or trend component, the model name lists the other
components only ("Model: AR(1)").
- A stochastic level and a stochastic trend without an irregular
component are shown as "stochastic level" and "+ stochastic trend", in
the style of the other components ("stochastic seasonal(4)"), followed
by the other components.
Not changed
- The summary of every named trend specification, and trend_specification
(still None for these combinations, so that clone and pickling pass the
boolean components).
Tests
- For autoregressive=1, a stochastic seasonal, a damped stochastic cycle
(mask 0), and a stochastic level and trend without and with a seasonal
(mask 30), the model rows of the summary list the components; all five
fail on the base with "None".
- Each of the twelve named trend specifications, with an AR(1), is shown
by its name followed by "+ AR(1)" (unchanged).
bashtage
force-pushed
the
wip-uc-summary-model-name
branch
from
November 28, 2026 22:06
a3e838e to
bf1db76
Compare
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.
#11086 and #11083, which this PR was stacked on, are merged. #11086 names the fixed slope combination; this PR handles the two combinations that have no name. No conflict in
structural.pywith #11085 or #11087-#11089;test_structural.pyconflicts with #11087 and #11089 only where both append tests at the end of the file (as #11086 does): keep both blocks.BUG: Show the components of unnamed UnobservedComponents trends in summary
The summary of UnobservedComponents results names the model by the trend
specification (trend_specification), followed by the other components.
trend_specification is None for the two combinations of level and trend
components without a name: no level or trend component (trend mask 0, for
example autoregressive=1 only, a stochastic seasonal or a stochastic
cycle only), and a stochastic level and a stochastic trend without an
irregular component (trend mask 30). The summary then showed
"Model: None", followed by "+ AR(1)" (or the other components).
Changes
components only ("Model: AR(1)").
component are shown as "stochastic level" and "+ stochastic trend", in
the style of the other components ("stochastic seasonal(4)"), followed
by the other components.
Not changed
(still None for these combinations, so that clone and pickling pass the
boolean components).
Tests
For autoregressive=1, a stochastic seasonal, a damped stochastic cycle
(mask 0), and a stochastic level and trend without and with a seasonal
(mask 30), the model rows of the summary list the components; all five
fail on the base with "None".
Each of the twelve named trend specifications, with an AR(1), is shown
by its name followed by "+ AR(1)" (unchanged).
tests added / passed.
code/documentation is well formatted.
properly formatted commit message. See
NumPy's guide.
AI Disclosure
Contributions must comply with the statsmodels AI Policy.
Tick exactly one of the following. If AI tools were used, replace the
<...>placeholders in the second option with the tool name(s) and how the tool's output was
used.
Tool(s): Claude Code (Claude Opus 5.5).
Used for: finding the bug in a coverage audit of the state space models, writing the fix and its tests, and checking them (tests failing on the base, mutation check).
I have personally read, understood, and can explain every line of this diff, and
have verified the statistical/numerical correctness of the change.
🤖 Generated with Claude Code