Repository navigation
ENH: Decouple state space / filter from MLE - #2473
Conversation
|
Also, this PR as it is now would remove the ability to construct ad hoc state space models (see #2330). |
|
This PR changes the structure from: to where:
|
|
This fixes the following issues:
|
|
Question: right now, this does not expose in My initial impression is that we may not need to directly expose them, but instead let individual models do that in a more user friendly way. So SARIMAX may not need the |
I fully agree. We started at some point early on to copy some attributes from models to results, but I also think now that it keeps it cleaner if we only copy what's really necessary and accessed very often by users. |
|
Question: right now, the |
|
this looks like it might include some code from the cov_type PR #2356 that has been merged. This will need a rebase with likely merge conflicts. |
|
Rebased following the merge of #2356. |
There was a problem hiding this comment.
I guess this also needs dates and freq even though they are positional.
We need a check when the recreating of the model is actually used.
There was a problem hiding this comment.
Good point, but it looks like the other tsa models don't do this. Possibly I will postpone this, then?
There was a problem hiding this comment.
It's not needed right now. It's currently only used by a few new generic features mainly for discrete and glm. One application is to get a new model for testing a restriction, as in llnull.
|
spot checking (mainly on interface), I only see a few things to comment on. IMO, this should be merged before the first release of statespace model. There are user relevant changes for accessing the The scipy conference sprint is next week, in case Skipper prepares the release, and we still have (most likely) a few days next week. I could merge tomorrow or Monday. |
object as `filter_results`
|
Can I just merge this today, or are there still things to look at? |
|
Do we need to update the notebooks in the documentation, so they still work correctly when this is merged? |
Yes, let's plan to merge today (Monday). But you're right, let me go back through the notebooks to make sure everything works as expected before the merge. Also, in a previous PR I had added release notes and documentation, so I need to go fix those too. But maybe that should be a separate PR so that we can get this one merged? |
What notebook versions do we support? Can I upload the IPython v3.0.0 notebooks (which are actually the v4 notebook format) or do I need to continue to upload older notebooks (e.g. v3 notebook format)? |
|
V4 should be fine. If I manage to clean up the data loading, then I might ask you to convert to v4 because I stll only have v3 ipyton. |
REF: Decouple state space / filter from MLE
|
@ChadFulton Can you try to get at least the update of the release notes in this week? |
|
Yes, I'm sorry about the delay. I just moved and it's been one thing after another, but I should be done this evening and push the PRs later tonight. |
REF: Fix regressions introduced in #2473.
Removes the inheritance relationship between the MLE classes and the Statespace classes, replacing it with delegation instead.
This PR also incorporates all the changes in #2356, but we could probably merge that first so that the changes are kept separate, and then when I rebase I can make sure the merge goes as planned.