Repository navigation
BUG: ExponentialSmoothing AICC Divide By Zero Error - #4825
Closed
andrewcking wants to merge 1 commit into
Closed
andrewcking wants to merge 1 commit into
andrewcking wants to merge 1 commit into
Conversation
Catches ZeroDivisionError
Codecov Report
@@ Coverage Diff @@
## master #4825 +/- ##
==========================================
- Coverage 81.14% 81.13% -0.01%
==========================================
Files 581 581
Lines 89901 89904 +3
Branches 10041 10041
==========================================
+ Hits 72946 72947 +1
- Misses 14675 14678 +3
+ Partials 2280 2279 -1
Continue to review full report at Codecov.
|
bashtage
reviewed
Aug 6, 2018
| aicc = aic + (2 * (k + 2) * (k + 3)) / (self.nobs - k - 3) | ||
| try: | ||
| aicc = aic + (2 * (k + 2) * (k + 3)) / (self.nobs - k - 3) | ||
| except ZeroDivisionError: |
Member
There was a problem hiding this comment.
Better to check that self.nobs - k - 3 > 0 since will get wrong result if self.nobs - k - 3 is negative.
There was a problem hiding this comment.
Hi,
I tried to edit holtwinter.py. Unfortunately, I can't change it... do you know how to fix it ?
bashtage
added a commit
to bashtage/statsmodels
that referenced
this pull request
Aug 7, 2018
Add check that nobs-k-3>0 before calculating aicc, and return inf if not closes statsmodels#4796 closes statsmodels#4825 closes statsmodels#4762
gaborfeher
pushed a commit
to gaborfeher/statsmodels
that referenced
this pull request
Dec 23, 2018
Add check that nobs-k-3>0 before calculating aicc, and return inf if not closes statsmodels#4796 closes statsmodels#4825 closes statsmodels#4762
Member
|
This is fixed in master. |
|
Thanks. I used sudo pip3 to install it directly. I will download from
github.
…On Fri, 22 Mar 2019, 15:57 Kevin Sheppard, ***@***.***> wrote:
This is fixed in master.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4825 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUQlDj8PaAboCZCUxHYoWA8NWvHmZUVEks5vZO9bgaJpZM4Vs94G>
.
|
ikalyvas
pushed a commit
to 5GinFIRE/osm_autoscaler
that referenced
this pull request
Aug 31, 2019
is fixed (statsmodels/statsmodels#4825) Length of cpu_load_to_vdus list increased to 30 since load can now exceed 1140 (corresponding to 20 vdus)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ExponentialSmoothing can fail in some circumstances due to AICC having zero in the denominator when calculating. This simply catches a ZeroDivisionError when calculating AICC and sets AICC to np.inf in those cases. Custom build appears to be working (building and running yes but also giving good results) where it would simply fail before.
See #4796