Repository navigation
Conversation
against mgcv with different parameterization
… from pirls use tools.matrix_sqrt
refactor get_prediction, improve unit test
|
next change:
docstring for fit does not list all the arguments, it mainly says "most parameters are the same as for GLM" |
|
fit with gradient returns a GLMResultsWrapper but uses hard coded wrapper with method='bfgs' in discrete count models we also have the wrapper class attached for generic use I think or IIRC one advantage of defining it in GLM uses a leading underscore for |
|
ignore for now. MultivariateGAMCVPath works fine in a simple example (1 component and no exog_linear), but API should be improved. in general: Can we use a short cut and just split the existing model my |
|
naming again WRONG: GLMGam has one additive, multi-component smoother, which holds the list of individual smooth components. |
|
folder names: too many identical names |
|
now k-fold cross validation works also for exog_linear (but no verifying unit tests) That was the last missing piece of the core functionality. Should be ready to merge, except for another round of reviewing and fixing docstrings. |
d6f38e1 to
ad59b0c
Compare
|
all red, I forgot to add the |
|
being a bit pedantic: The main user classes don't have smooth in the name: one possibility would be to change the name to |
|
strange test failure in all CI that I don't see on my computer. It looks like exog_linear is penalized based on edf. But other parts don't fail. I added a few asserts that select_penweight and select_penweight_kfold don't affect some of the penalization model attributes |
|
there is still the same failure in at least one of the runs, but the new asserts don't fail in other news: the latest pandas release broke the VAR unit tests |
|
The discrepancy in the travis failure is proportional, so most likely a problem with I'm not able to reproduce or reverse engineer that number yet. Possibly something changes model.scale or model.scaletype. Also, there is potentially a circular definition
I'm not sure how this currently works.
This sounds bad, but I think (!) there is a invariance in the edf so that it is independent of scale as long as we use the same scale in all computation. However, the failure seems to depend on the random sequence of how the unit tests are run by pytest, so my guess is still some unintended changes somewhere. |
2d20adf to
9efef7d
Compare
|
Ok. but I don't see how it can change edf on an existing results instance given that it is used in results The edf computation depends on model scale through hessian_factor if it is not provided as argument I changed it so that hessian_factor in edf uses self.scale |
9efef7d to
3d25593
Compare
|
It looks like master is all red and full of deprecation warnings (based on travis for this PR). Gam in this PR looks fine now, except for lint violations |
3d25593 to
7b82d13
Compare
4c69c76 to
5ae643f
Compare
|
I am planning to merge this tomorrow. (Never merge a big PR late at night.) |
continuation of #5296 after rebase
commits for outside gam/penalized