Repository navigation
ENH: Add automated model selection for TSA models - #5151
ChadFulton wants to merge 1 commit into
Conversation
| res = None | ||
| value = np.nan | ||
| exception = e | ||
| raise |
There was a problem hiding this comment.
Huh? How is this different than just not having the try/except?
| @@ -0,0 +1,659 @@ | |||
| """ | |||
| Automatic model selection for SARIMAX models. | |||
|
Could be a nice API addition. Helper functions to deduplicate code will be nice. I’ll look again when at a real keyboard. |
| models_table = SimpleTable(params_data, | ||
| param_header, | ||
| params_stubs, | ||
| title='Evaluated models', |
There was a problem hiding this comment.
travis failures are pep-8, e.g. overindended line
There was a problem hiding this comment.
Once addressed, please add all these new files to lint.sh
|
main question I have without looking much is authorship. Who is the author and can we split it at least partially by author? |
| from .holtwinters import ExponentialSmoothing, SimpleExpSmoothing, Holt No newline at end of file | ||
| from .holtwinters import ExponentialSmoothing, SimpleExpSmoothing, Holt | ||
|
|
||
| from .automatic import api as automatic |
There was a problem hiding this comment.
If you were to define __all__ and change the from .stattools import * to explicit imports, that would save me some teeth-pulling.
The ideal situation is that #4621 is improved by @abhijeetpanda12 and we merge that PR, in which case this PR could be dropped completely. In its current state, #4621 it is not ready to be merged, and my main hope with this PR is that it can be used by Abhijeet as a reference for improving his PR (e.g. the type of inputs that would be useful, the type of outputs that are in the Statsmodels style) - although I don't want to just see this copy / pasted into #4621. In the worst case, we have this PR to fall back on and merge instead. (As far as authorship of this PR: All the code in this PR was written by me - it's like my PR with the alternative approach to exponential smoothing (#4183). It takes lessons from the work in #4621 (and so has Abhijeet listed in the Author: fields of the relevant files) but could be merged by me, since I wrote the code.) |
|
I have had glanced through the contents of this PR, and I can see most of the changes are to do with the results of the model specifications. |
This PR is a follow-up to #4621 (automatic methods GSOC), that so far does two things:
exponentialsmoothing.pyandsarimax.pyto standardize the interface, provide more comprehensive results, and add a variety of ways to specify the model search space.structural.pythat adds support forUnobservedComponentsmodels.A notebook showing the basics of the proposed interface is at https://gist.github.com/ChadFulton/eb3f926e8925072196efa3c75e7987f5
Of course this is very early stages. Two big TODOs are:
(I will be out of touch for the next few days so I won't be responding, but any feedback would be greatly appreciated!)