Skip to content

SUMM: using Mixins for modifying likelihood models or M-estimators #2392

Open

Description

@josef-pkt

proposal in the wiki
https://github.com/statsmodels/statsmodels/wiki/SMEP-D:-Multiple-Inheritance-and-Modifier-Mixins-for-LikelihoodModels

and initial design issue #2370

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.MixedMixin statsmodels.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

  1. added this to the 0.8 milestone on May 10, 2015
  2. modified the milestones: 0.10, 0.8 on Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions