Repository navigation
ENH: zero-inflated count models - #3908
Conversation
|
llnull has no unit tests. problem with a regression test is that the difference in llnull is very small in the test case, and is most likely smaller than the numerical noise across versions/machines implied by convergence tolerance. |
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
amended commit for missing comma Now with
|
Codecov Report
@@ Coverage Diff @@
## master #3908 +/- ##
==========================================
+ Coverage 78.74% 78.91% +0.17%
==========================================
Files 537 541 +4
Lines 79703 80648 +945
Branches 9120 9181 +61
==========================================
+ Hits 62763 63646 +883
- Misses 14883 14923 +40
- Partials 2057 2079 +22
Continue to review full report at Codecov.
|
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
data handling:
from_formula works for exog without changes |
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
I added comments about status to the top comment, PR description |
|
Fixed slicing of offset and exposure for predict. The code needs refactor with a model method to provide Prob[y=0 | model_main] not changed: if offset or exposure are specified in model but only the exog are specified in predict, then currently a shape mismatch exception is raise, i.e. uses internal offset and exposure, GLM defaults to zeros |
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
predict exog_infl cannot be list, raises exception no shape attribute
|
|
I think I'm giving up here soon, and merge. Unit tests are not complete, but the core generic ZI methods have at least one test case each (I think). There is still a lot of work, but that can be left to follow-ups. this now includes some diagnostics for count models, that I used to check the results in examples. Not public yet, because API is unclear and no "verification". (Checked mainly by whether it "looks good" in examples.) |
1 similar comment
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
doc build doesn't show count models. I would expect that there are at least warnings, if not errors in the docstrings the new models are not yet included in sphinx rst. |
TST: test for zeroinflated with scipy minimize
|
After being quite for some time the appveyor hang in statspace simulate is back in one python version (3.6) Otherwise all green |
|
merging, still experimental in some fringes @evgenyzhurko Thanks for the work in the GSOC. That's the second third of the project. |
|
This pull request introduces 24 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
this is PR #3755 with some additional changes
Status
(after commit "TST: refactor, extend tests for init_keys and null model")
open:
missingskip for nowfrom_formulaworks for main model, exog_infl not supported, (most likely skip)docstrings: incomplete
exposure: likely bug, try fix, or work around using offset internally, (but in the latter case predict might be wrong if exposure or offset are specified by user)
predict options: look fine but insufficient unit tests.
llnull, null convergence: currently can have llnull=np.nan, separate follow-up issue, refactor for all count or all discrete models
remove_data, pickle: most likely exog_infl and similar are not removed. I guess pickling shouldn't be a problem.
extras not verified or unit tested: there are several inherited method and options that don't have unit tests and that I did not check. robust cov_types not checked (everything inherited)
the two main things for correctness: fix
exposureand unit tests forpredictoptions - DONEthis looks fine now, but more unit tests will be helpful
Note: We can have some additional cross checks and improvements when Truncated and Hurdle PR is available.