Skip to content

ENH/Design: do we need a PenalizedResultsMixin #5366

Open

Description

@josef-pkt

I don't know yet.

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.

Activity

  1. josef-pkt commented on Nov 3, 2018

    @josef-pkt
    MemberAuthor

    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.

  2. added this to the 0.11 milestone on Jan 25, 2019
  3. josef-pkt commented on Jan 25, 2019

    @josef-pkt
    MemberAuthor

    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.

  4. modified the milestones: 0.11, josef on Oct 5, 2019
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions