Skip to content

SUMM/REF refactor link argument in family #2913

Open

Description

@josef-pkt

Currently the family.__init__ takes the link class but not an instance.

This causes problems with parametric links because we need to specify an extra argument in the family.__init__ for the link parameter.
For example, I don't see how it's possible to use a Power link with user specified power parameter except by writing a subclass, which will break in the valid link check.
see discussion for Tweedie in https://github.com/statsmodels/statsmodels/pull/2872/files#r61099271

This is the original refactoring that switched from using link instances to using link classes as argument
5917fcc

related issues:


We can keep link classes as argument during a deprecation period while we switch to link instances.

Note: we don't want to provide instances in statsmodels to avoid that multiple models use the same instance. Based on a comment in the old commit this might have been one of the problems with the initial instance based implementation. (similar to scipy distribution "global" instances)

Activity

  1. lorentzenchr commented on Jan 10, 2017

    @lorentzenchr
    Contributor

    See PR #3370.

  2. lorentzenchr commented on Feb 26, 2017

    @lorentzenchr
    Contributor

    I think, this issues can be closed.

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