Repository navigation
ENH: Improve speed in Exponential Smoothing - #4845
Conversation
|
@tvanzyl If you are still around it would be helpful if you could look at this. In particular, the change to the initialization of the trend when it is multiplicative. |
|
I will take a look.
…On Tue, 07 Aug 2018, 10:49 Kevin Sheppard, ***@***.***> wrote:
@tvanzyl <https://github.com/tvanzyl> If you are still around it would be
helpful if you could look at this. In particular, the change to the
initialization of the trend when it is multiplicative.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4845 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKMOTyNWPQQERU3uuIwDfXvHja8ut8jks5uOVR7gaJpZM4VxvJs>
.
|
Codecov Report
@@ Coverage Diff @@
## master #4845 +/- ##
==========================================
+ Coverage 81.14% 81.15% +0.01%
==========================================
Files 581 581
Lines 89927 90160 +233
Branches 10043 10071 +28
==========================================
+ Hits 72968 73173 +205
- Misses 14677 14688 +11
- Partials 2282 2299 +17
Continue to review full report at Codecov.
|
ee46fba to
156b293
Compare
| b[i] = (beta * (l[i] / l[i - 1])) + (betac * b[i - 1] ** phi) | ||
| s[i + m - 1] = y_gamma[i - 1] - \ | ||
| (gamma * (l[i - 1] * b[i - 1]**phi)) + (gammac * s[i - 1]) | ||
| (gamma * (l[i - 1] * b[i - 1] ** phi)) + (gammac * s[i - 1]) |
There was a problem hiding this comment.
In general we didn't use spaces around power **
|
I only did a partial skimming of the changes and didn't see any problems. |
|
Great addition to the exponential smoothing models! |
|
Had a quick look over. Great improvements to the models. |
Add Cython implementation which improves performance by up to a factor of 50
Add suppose for fixing initial values of level and slope Add support for starting values
Add ability to set start params Add ability to set start values
Add dataset to use in testing
Ensure multiplicative trend is always positive Add formatted parameter output Add summary Correct error types from NotImplementedError to ValueError Simplify seasonal period inferecne Ensure start params have the correct shape Fix buggy test due to inapporpriate starting values for multiplicative trend
Add test to directly compare single and double exp smoothing
Add additional documentation and fix typos
Add check that nobs-k-3>0 before calculating aicc, and return inf if not closes statsmodels#4796 closes statsmodels#4825 closes statsmodels#4762
Split out initial value culaculation so that that initial values are accessible to users
Fix small typos Prevent warnings from pandas
Use preferred one form tsatools
3bf8c68 to
2ebdb1b
Compare
|
I only did a very coarse skimming. @bashtage Thank you |
|
It is 100% compatible with the 0.9 release. The keyword arguments really
need rearrangement but this can wait until 3.5 is the minimum so it can
become keyword argument only.
…On Sun, Aug 12, 2018, 23:55 Josef Perktold ***@***.***> wrote:
Merged #4845 <#4845> into
master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4845 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFU5RedoQcHfXSERaoRdoECn7fQ_pLI9ks5uQLJZgaJpZM4VxvJs>
.
|
Add Cython version of all smoothers, providing gains of ~ 50x for relevant models sizes
Fixed a bug that affected multiplicative trend initial values
Add ability to set starting values
Add ability to fix all model parameters or any subset
Improve model initialization options to speed up fitting if desired
Improve tests
Added summary
Added
params_formattedwhich returns a DataFrame. I did not want deprecation headaches so leftparamsas it is -- a dictionary.xref #4842