Repository navigation
Conversation
|
FYI: I think I will leave most or all changes to existing code that are not pure or high priority bug-fixes for 0.8, merging after 0.7 is tagged. Thanks for working on these issues. I'll add some inline comments |
There was a problem hiding this comment.
I think we should not store a results instance, since it will be stale right away (point to the wrong model attributes), and might use up memory.
As in GLM and RLM we should store a few attributes that we might use for convergence criteria or as fit information. History is a dict in both models
GEE has a _fit_history which is also a dict.
There was a problem hiding this comment.
That is a bug - should be just params
55e10ee to
49f64f0
Compare
There was a problem hiding this comment.
This will not stop early if some params become very small, being close to zero.
I think adding also atol and using np.allclose with both would be better.
|
To make this a bit more future proof you could change the history to a dict |
|
@bashtage If you change the history to a dict, then I can merge it for 0.7, that's the only place I want to avoid future changes. |
49f64f0 to
b972a55
Compare
b972a55 to
60cb04b
Compare
Added relative criteria stopping criteria to GLSAR. Also added history to fit results. closes statsmodels#181
60cb04b to
497a16a
Compare
|
I didn't realize that this has been changed. I started to look at it and try it out. |
There was a problem hiding this comment.
@bashtage Was there a specific reason to converting the list, besides having a nicer print?
I'm planning on removing this for 0.7, because it make indexing difficult because of inconsistent behavior between pandas, numpy, and python lists.
A possible alternative would be to use a simple history subclass of python list that has a as_dataframe attribute, which could also add rho and maybe other things to the history DataFrame. But this would have to be introduced consistently for all histories in models with specialized iterative solvers.
There was a problem hiding this comment.
No, just making it more user friendly if it was every going ot be used by an end user.
Added relative criteria stopping criteria to GLSAR. Also added
history to fit results.
closes #181