Repository navigation
Conversation
bashtage
force-pushed
the
wip-mlemodel-smoothed-low-memory
branch
6 times, most recently
from
November 27, 2026 23:06
356024c to
6b97f25
Compare
4 of 5 tasks
…tput
get_prediction(information_set="smoothed") (and predict) of state space
results needs the output of the Kalman smoother. The results of filter,
with or without low_memory=True, and of fit with low_memory=True, do not
have it, and the call raised "AttributeError: 'NoneType' object has no
attribute 'shape'".
Changes
- A ValueError says that smoothed predictions require the output of the
Kalman smoother, and to use the results of smooth, or of fit without
low_memory=True.
Not changed
- Results that have the smoother output, and the other information sets
(with low_memory, their unavailable output is still NaN).
Tests
- The ValueError for the results of filter, with and without low_memory,
for the observations and for the signal; these fail on main.
- Smoothed predictions of a zero-mean AR(1) from smooth equal the
smoothed state, and the predicted ones of the results of filter equal
phi y_{t-1}.
bashtage
force-pushed
the
wip-mlemodel-smoothed-low-memory
branch
from
November 28, 2026 22:06
6b97f25 to
0938ffb
Compare
4 of 5 tasks
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.
#11029 (the C10 coverage chunk) appends tests to the same test file, so whichever merges second needs a rebase (keep both test blocks). The other C10F PRs and #11043 also append to
test_mlemodel.py: keep every appended block.get_prediction(information_set="smoothed") (and predict) of state space
results needs the output of the Kalman smoother. The results of filter,
with or without low_memory=True, and of fit with low_memory=True, do not
have it, and the call raised "AttributeError: 'NoneType' object has no
attribute 'shape'".
Changes
Kalman smoother, and to use the results of smooth, or of fit without
low_memory=True.
Not changed
(with low_memory, their unavailable output is still NaN).
Tests
The ValueError for the results of filter, with and without low_memory,
for the observations and for the signal; these fail on main.
Smoothed predictions of a zero-mean AR(1) from smooth equal the
smoothed state, and the predicted ones of the results of filter equal
phi y_{t-1}.
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 contract audit, writing the fix and its tests, and checking them (tests failing on main, 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