Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6397 +/- ##
==========================================
+ Coverage 85.05% 85.33% +0.27%
==========================================
Files 640 646 +6
Lines 103193 104221 +1028
Branches 11277 11357 +80
==========================================
+ Hits 87770 88935 +1165
+ Misses 12945 12815 -130
+ Partials 2478 2471 -7
Continue to review full report at Codecov.
|
|
closes #2597 |
|
behavior at singular exog IRLS uses pinv, so we get similar behavior to OLS and IRLS in GLM (*), with a pinv regularized solution So, we could verify that pinv-regularized |
based on the test provided, it at least appears to work without throwing an exception....but it might be preferable to have a nontrivial test to confirm correctness (particularly in light of the runtime warning mentioned in convo above) |
|
You could create an random sample with a repeated column (2 columns in X are identical) and a sample size, for example, nobs=100. As a cross check, dropping a perfectly collinear column should result in the same prediction, fittedvalues as including it with pinv regularization (IIRC). |
|
...there seems to be a coverage test failing due to a change in |
|
I don't know what causes "weird" test coverage results. In my experience, we get sometimes unrelated changes in unit test coverage for things that haven't been changed. I guess it's a problem in how they compute changes in the code, or how test results are compared. If singular exog doesn't raise an exception, then you can remove the |
|
LGTM, Thanks for the fix and sorry for the delay. 12 commits is too much for this |
db3737c to
4c18014
Compare
No worries - thanks! |
4c18014 to
2e8614b
Compare
2e8614b to
24cc187
Compare
NumPy's guide.
Updating quantile regression to initialize using the dimension of the X matrix rather than the rank. This might break things, so testing before finalizing the PR. Will add a test or three if current test suite passes with the change.
Notes:
needed for doc changes.
then show that it is fixed with the new code.
verify you changes are well formatted by running
flake8is installed. This command is also available on Windowsusing the Windows System for Linux once
flake8is installed in thelocal Linux environment. While passing this test is not required, it is good practice and it help
improve code quality in
statsmodels.