Skip to content

SUMM/ENH: models with penalization #4038

Open

Description

@josef-pkt

related issue: covariance shrinkage, and possible other non-model penalization

PRs, current code in statsmodels

issues, some just with some references

and I guess some more, and some with specific design questions

algorithms

  • explicit linalg solution, Theil/Ridge
  • penalized IRLS, local quadratic approximation
  • artificial observations, adjustments to observations (used in GAM)
  • scipy optimizers for smooth problems
  • L1-penalized constrained optimization, interior point used in discrete
  • coordinate descend used in elastic net
  • backfitting with univariate penalization (only in ancient sandbox)
  • iterative special algorithm: ultrahigh screening

the pieces

  • penalization functions and associated functions like shrinkage or thresholding functions
  • structures/contrasts as penalization target or prior structure
  • optimization, as model method or as standalone classes
  • results: unclear inference except of M-estimator with L2 "prior"
    • short term: maybe ignore dropped (shrunk to zero variables) as in discrete fit_regularized

one only partially solved problem is how to generically generate the instance of the results class,
currently some workarounds and partial support

another problem: verifying unit tests are difficult because parts are not available in other packages. Some parts can be cross-checked with different implementation and models, e.g. GAM has unit tests but cov_params is difficult because there are many possible choices and the R package changed several times it's implementation.

Activity

  1. added this to the 0.10 milestone on Oct 16, 2017
  2. josef-pkt commented on Jan 12, 2019

    @josef-pkt
    MemberAuthor

    Implementation

    special methods for specific penalization: fit_regularized

    • discrete models: L1 interior algorithm
    • linear_models: elastic net with coordinate descend
    • GLM: elastic net with coordinate descend
    • GEE: PR with SCAD using penalized estimating equations

    specific models

    • TheilRidge : sandbox
    • GAM, GLMGam : PR
    • PenalizedMixin subclasses: only in unit tests and examples

    generic MLE penalization

    • PenalizedMixin: requires subclasses with multiple inheritance with a model that uses nonlinear optimizers such as those in scipy using penalized loglike, score and hessian.
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