Repository navigation
BUG/REF: fix GLM null, init keywords - #4601
Merged
Merged
Conversation
Member
Author
|
travisci has currently problems accessing pypi files for pip install, i.e. build stops when downloading pytest. |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4601 +/- ##
==========================================
+ Coverage 80.26% 80.26% +<.01%
==========================================
Files 564 564
Lines 85592 85593 +1
Branches 9679 9678 -1
==========================================
+ Hits 68702 68703 +1
+ Misses 14662 14661 -1
- Partials 2228 2229 +1
Continue to review full report at Codecov.
|
Member
Author
|
All green now, I restarted travis jobs after pypi problems were solved. This needs mention in release notes for bug-wrong. I'm merging this as is, and prepare another PR for Binomial count with fit_constrained which uses this fix. |
This was referenced May 8, 2018
josef-pkt
added a commit
to josef-pkt/statsmodels
that referenced
this pull request
May 14, 2018
BUG/REF: fix GLM `null`, init keywords
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.
closes #4597
this fixes GLM.null and consequently null_deviance, llnull if exposure is used independent of family, and if offset is used in the binomial count case.
There are some unit tests for null_deviance, More unit test in my penalized #4576 where I initially ran into this bug.
more general:
see #4599
fixes recreating models for Binomial count, by addin
n_trialsto__init__kwargs and init keysThis will fix most likely other bugs, or adds support for cases that are not supported yet,
e.g. fit_constrained and fit_regularized for Binomial counts #4600
but I didn't check and test those cases yet.
If current unit tests work with these changes, then I might add some more unit tests.