Skip to content

GLM.fit maxiter=0 incorrect #1728

Closed

Description

@josef-pkt

GLM fit still does a lot of initialization calculations that are not necessary if maxiter=0.

I'm using maxiter=0 with start_params=params to get a full results instance.

I think the error is in missing offset and exposure in the initialization
mu = self.family.fitted(np.dot(wlsexog, start_params)) see #1486

Activity

  1. added a commit that references this issue on Jul 9, 2014
    9217656
  2. added a commit that references this issue on Sep 2, 2014
    d9ed595
  3. josef-pkt commented on May 13, 2015

    @josef-pkt
    MemberAuthor

    maxiter=0 and method='irls' returns results with params is None

    see #2393 for current case, working towards a generic solution

  4. josef-pkt commented on May 27, 2017

    @josef-pkt
    MemberAuthor

    might be fixed, but needs checking

  5. self-assigned this
    on Jul 24, 2019
  6. bashtage commented on Jul 24, 2019

    @bashtage
    Member

    Fixed in master, fast path for maxiter==0.

  7. added this to the 0.11 milestone on Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions