Repository navigation
ENH/BUG: add update _init_keys (still test failure) - #2259
Conversation
|
@ChadFulton Is there an easy, direct way to get the original arguments used in 22 out of more than 60 test cases fail |
|
This can go into 0.8, if there is no quick solution |
There was a problem hiding this comment.
I think there should be a comma here.
There was a problem hiding this comment.
Oh, that's the second comma that is missing. It took me half an hour to find the first. thanks
There was a problem hiding this comment.
No, that's the first, I forgot to commit this change, still the 22 failures (using data.orig_endog)
will push now the missing commit.
|
ok, down to 6 failures The original |
71846aa to
e4527e9
Compare
|
(bit of a mess pushing the right thing to the right place) the remaining 6 failures are all @ChadFulton is this |
|
@ChadFulton related question: which class and which |
|
You bring up two good issues:
Those two things I think are the only things preventing full specification and re-implementation of the model from the keyword parameters. |
|
for this PR's case of recreating a model, the location of the orig_data will be easy to handle (in to 2) one question is whether the initialization method is a To 1 Data refactoring in general: Also coming back to both holding state and to which data is used: If the representation and the kalman filter are delegated instances from the main mle or sarimax model, then it would be easier to "recreate", for example, a filter to do some auxiliary calculations, instead of reusing the same inherited structure each time. An analogy that is overall much simpler then here: In fit_constrained or fit_transformed I just created a new model instance that hold the transformed data. This makes it relatively easy to do the estimation in the auxiliary model, but present the original model in the original representation to the user, and possibly or optionally keep the transformed model attached for later reuse. Based on your explanation, it seems to me that in these cases (when endog and exog are swapped and transformed) the results statistics are in the transformed model. (Writing a lot because I'm thinking when I have to write, and might not remember later.) |
|
The latest commit also: getting |
|
@ChadFulton I think we can merge this (when TravisCI is green) |
ENH: fix/add SARIMAX _init_keys and get_init_kwds
see #2252 followup state space, SARIMAX
recreating a model, motivation: #1093
the current design for this is to define
_init_keysattribute list of keyword keys in__init__and_get_init_kwdsmethod to return dictionary with init keys and values. generic version is attached inbase, can be used to overwrite specific values (e.g. log exposure in count and glm)The problem is that here
endogis transformed in some cases.still test failures, I don't define and use specialized
_get_init_kwdsmethod yet