Repository navigation
dont set model scale or mu in GLM - #4032
jbrockmendel wants to merge 2 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4032 +/- ##
=========================================
Coverage ? 79.05%
=========================================
Files ? 542
Lines ? 81029
Branches ? 9205
=========================================
Hits ? 64059
Misses ? 14876
Partials ? 2094
Continue to review full report at Codecov.
|
|
Does coveralls have a config option to ignore decreases of a certain size? The "failure" here is a false-positive. |
|
failing unit tests in several GLM cases across all environments |
|
Yep, I'll take a look. In the meantime #5147 is there to help. |
2530bc7 to
49a8454
Compare
| elif self.scaletype.lower() == 'dev': | ||
| return (self.family.deviance(self.endog, mu, self.var_weights, | ||
| self.freq_weights, self.scale) / | ||
| self.freq_weights, scale) / |
There was a problem hiding this comment.
Only based on spot checking
my guess is that scale here should be 1.
scale should not be an argument in estimate_scale
|
when you test locally, you should include the failing test to see whether it's fixed
|
49a8454 to
b0ddf8a
Compare
|
Hmm doesn't seem to have fixed it |
|
Ok, this needs a look at The fail is in |
|
without investigating an example: possibly fit_zeros needs more unit tests for GLM when scale!=1, currently the failing TestGenericGLM is the only one |
|
I haven't tried to figure out why scale in master is correct, i.e. unit test passes in master for fit_zeros. ok, base.model my guess is the last line needs to be change to something like |
|
maybe another redesign that keeps the scale attribute in model |
|
This PR cannot be merged without further thought and decisions. We keep it open to see one possible version. We need temporary model attributes for the implementation of |
|
@josef-pkt IIRC you had a (more recent) PR that addressed a related issue. Did you get anywhere with this? |
|
@jbrockmendel Could you rebase so this can be considered? |
be89ede to
32ed265
Compare
Closes #4016