You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH/Design: do we need a PenalizedResultsMixin #5366
Currently we don't have a special generic Results class for penalized models. GamResults subclasses only the corresponding model results class, e.g. GLMGAMResults(GLMResults) and and so does TheilGLS TheilRegressionResults(RegressionResults)
A PenalizedResultsMixin might become useful when we have some generic results methods to support penalized models, and some idea about what should and can be provided consistently across penalized model.
one case where this might be useful is the have a "convention" for how to handle effective degrees of freedom in PenalizedMixin subclasses, and e.g. where to compute the hat_matrix_diag or a generic equivalent of it.
related question: what should be the common method names to be used in generic penalized code?
TheilGLS and GLMGAM rely much on the hat matrix for defining edf and similar.
We need generic names and methods that can be used also in M-estimators like PenalizedRLM, MLE cases like a penalized GeneralizedPoisson and even ZeroInflatedGeneralizedPoisson.
At least we want to provide extra information about the penalization.
The results class for GAM has extra methods but we might not have the relevant information in a PenalizedMixin instance.
Eventually we should also add effective degrees of freedom, edf, to all penalized models.
And we might have or want to override the behavior of some inherited methods. I'm not sure which, but for example GLMResults.get_influence will not be correct for the penalized case (AFAIR).
Also we should check what common methods can be used across the various penalized classes. E.g. do we have special diagnostics in any of those.
Activity
josef-pkt commentedon Nov 3, 2018
related question: what should be the common method names to be used in generic penalized code?
TheilGLS and GLMGAM rely much on the hat matrix for defining edf and similar.
We need generic names and methods that can be used also in M-estimators like PenalizedRLM, MLE cases like a penalized GeneralizedPoisson and even ZeroInflatedGeneralizedPoisson.
josef-pkt commentedon Jan 25, 2019
yes we need a results mixin
At least we want to provide extra information about the penalization.
The results class for GAM has extra methods but we might not have the relevant information in a PenalizedMixin instance.
Eventually we should also add effective degrees of freedom, edf, to all penalized models.
And we might have or want to override the behavior of some inherited methods. I'm not sure which, but for example GLMResults.get_influence will not be correct for the penalized case (AFAIR).
Also we should check what common methods can be used across the various penalized classes. E.g. do we have special diagnostics in any of those.