Repository navigation
BUG: fix binary pred_table for zeros see #2968 - #3166
Merged
Merged
Conversation
josef-pkt
force-pushed
the
bug_discrete_pred_table
branch
from
August 17, 2016 19:05
8c98e03 to
4111586
Compare
Member
Author
|
amended commit and force pushed now MNLogit works |
This was referenced Aug 17, 2016
josef-pkt
added a commit
to josef-pkt/statsmodels
that referenced
this pull request
Aug 19, 2016
…table BUG: fix discrete pred_table for zeros closes statsmodels#2968
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.
should close #2968
in discrete binary pred_table uses incorrect bins if a column is zero
I just saw that MNLogit has the same problem if a boundary column is zero
not yet fixed or looked into, unit test commented out
Note:
There is a backwards incompatible change in behavior if a probability is exactly at the threshold.
Before, the ties are treated as 0 event, now as 1 event, which is the default
After thinking, I will change this again to be consistent with MNLogit, which inherits argmax behavior which chooses the first occurrence if there is not only one max.
update
switched back to ties go to lower index
fixed MNLogit.pred_table