Repository navigation
Conversation
|
did you look at Hyndman's forecast package? From my readings I thought that we should get exactly the same versions of the exponential smoothing filters in PR #1287 as in Hyndman has several helpful posts about it in his home page |
|
Yes, I'm using the forecast package. It's in the right ballpark, but there are several subtleties that make this difficult, starting values and timing/alignment in the different cases mostly. I'm just trying to match things now using the heuristic suggested initial values and then move on to optimization (which you must have in some cases for things to be correct). It's almost all in place, but not quite. It doesn't help that most of the detailed documentation for This suggests that shouldn't be the case, because it's all initial parameters, which are the same, and optimization, which I'm not doing in the former call. |
|
Or to make completely sure they have the same initial values I'm missing something... |
|
Fun, fun, fun Hyndman has his new book online, but I don't know if it's helpful, I never looked at it |
|
It looks like it's just a question of whether they treat the initial values as pre-sample (holt) or burn them (HoltWinters). |
|
Cleaned up a little bit, fixed some problems, and added test coverage close to 100%. Might still be some corner cases or subtle bugs. There are a few subtle differences in what TODO
|
|
There's a failure on Python 3 loading the co2 data. Is this a 2to3 problem, a pandas bug, or our bug? Maybe we need a compat wrapper in there for that string? |
|
Re-factored to follow the model-fit-results pattern. Makes using the existing tsa machinery for dates a lot easier as well as doing optimization for the parameters. |
Started Exponential Model off of code from dfrusdn and heavily modified. Handles 15 different models.
remove lines some style
Changed title for cython move recommended by josef
added authors per josef
|
@jseabold @josef-pkt The code was modified for alignment purposes of two cells because I did not implement backcasting. Secondly the triple exponential smoothing uses the NIST way to calculate the seasons and I did subtraction so that when you put down values like I fixed the 2to3 problem so if you want I can re upload code Again I apologize for the late response. |
98e94b5 to
8e7450a
Compare
|
Any news on this front? Can I help somehow? I can't clone the rep right now. |
|
What this needs is for someone to sit down and code the optimization heuristics to help convergence that Hyndman talks about in his book. It's not a ton of work, but it's very much not sexy/fun. |
|
Actually might be worth putting in the new state space framework we have. A decent amount of the code may be able to be re-used but maybe not. |
|
Could you please put some pointers in the existing state space framework code? |
|
There are notebooks in the example folder. |
|
The tests and dataset can be re-used certainly. I think they may already be in master. This needs a rebase. I'll see about it soon-ish. |
|
Great. I'll try to take a look at it after work. |
|
statespace model is so far only linear (and, less relevant, Gaussian) Can all of the exponential smoothed methods be represented as linear statespace model? |
|
Yes, as far as I recall. The multiplicative error models might need a transformation, but I haven't looked at this in a long time. |
|
I've working on a simple case of exponential smoothing based on new SSM, as the same as tbats model of R forecast package.I have no clue how to transform multiplicative version to linear. |
|
What's the latest on this? I was looking to develop a similar tool before I stumbled across this thread. Will this be incorporated into statsmodels? |
|
@Leoyzen Can't you log transform to convert a multiplicative model to linear? |
@jseabold Where in the book does he talk about optimization heuristics? |
|
@josef-pkt This has been superseded by released code. |
This includes #1484 and will need to be rebased on master when that is put into master. This is not close to merging. The only thing that's tested is the
sesmodel. I don't even know how to replicate some of these models yet in R, so this is going to be a longer term project than I'd hoped.