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
SUMM: using Mixins for modifying likelihood models or M-estimators #2392
this SUMMary issue is to collect related issues for specific cases and discuss some implementation details
currently, I have two mixin draft version, MixedMixin, and Penalized Mixin
penalized
#2385 PR add elastic net #2374 PR add SCAD to _penaltiies #2293 general request for maximum penalized likelihood, (Logit separation case)
...
Implementation
signatures of methods, especially __init__
Should we override method just to get a informative signature, instead of *args, **kwds?
possible complication if we have other positional arguments besides endog and exog
maybe python compatibility: I'm using python 3.4 now, location where *args are permitted has changed
return classes
we need to find a more flexible and more standardized way how return classes are determined and how return instances are created. several open issues ???
do we need specific results classes, ResultsMixins?
new methods to present specific results, maybe not necessary for Penalized but needed for Mixed.
code location
where do we put the mixin classes, currently I'm planning on a new module for each mixin in base
i.e. statsmodels.base.mixed.MixedMixinstatsmodels.base.penalized.PenalizedMixin but for example the penalized mixin is just one class with about 40 lines and will only get a bit larger.
(We have statsmodels.base._penalties for the penalty functions, which also might have to be public for use in model.__init__ as in GLM and RLM.)
Activity