Skip to content

ENH/REF isfinite check when using _MinimalWLS #4566

Closed

Description

@josef-pkt

GLM and RLM use _MinimalWLS starting in 0.9, merged in #3048

this does not include a isfinite check, and might hang or segfault with some linalg libraries if inf or nans are encountered.

E.g.
GLM binomial (in original distributed notebook) used endog that are outside of the support of the distribution. This raised an exception for the isfinite check with WLS (added in 0.9 in the has-constant check)
AFAIR, in my messy testing for 0.9 release I ended up with cases like this that now have no isfinite protection before going to linalg.

My guess

  • add check for support of endog, I think only binary model in discrete have them.
  • If endog and exog are ok from the data, then we only need to check that weights are finite during IRLS iterations in GLM and RLM.

Activity

  1. added this to the 0.9 milestone on Apr 29, 2018
  2. josef-pkt commented on Apr 29, 2018

    @josef-pkt
    MemberAuthor

    maybe worth looking at for final 0.9 release, but we don't have general policy for isfinite checks yet.

  3. added 3 commits that reference this issue on Aug 22, 2018
    1091870
    dc55eb6
    42902bc
  4. added 4 commits that reference this issue on Sep 10, 2018
    8794875
    db7e079
    f1d3195
    003b883
  5. added a commit that references this issue on May 6, 2019
    b7452c7
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