Skip to content

GenericLikelihoodModel: add option for which results class #2122

Open

Description

@josef-pkt

The superclass fit methods return a hard coded results class. This means we have to copy over the results to a new instance if we want to return a model specific results class.

I'm running into this right now in BetaRegression PR #2030, and I have somewhere (didn't find it) an issue for improvements in discrete.

GenericLikelihoodModel would be a good case where we can try out adding an option for which Results class is created.

Activity

  1. josef-pkt commented on Dec 5, 2014

    @josef-pkt
    MemberAuthor

    Related: I don't see an example in miscmodels for a subclass of GenericLikelihoodModel where we could just copy the pattern for a model specific Results class.

  2. added this to the 0.7 milestone on Dec 5, 2014
  3. josef-pkt commented on Dec 5, 2014

    @josef-pkt
    MemberAuthor

    I added the class as attribute results_class in BetaReg enhancement but this might not work for pickling (never tried).
    So far I/we have avoided attaching classes. I think a method would be better or as property if that works,

  4. removed this from the 0.7 milestone on Apr 6, 2021
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions