Skip to content

GLM: scale attribute in model #2399

Open

Description

@josef-pkt

in GLM scale is attached to the model, and the attribute is used for calculating the results, e.g. bse

This makes it difficult to recreate results with different params and normalized_cov_params
see #2393

Activity

  1. jbrockmendel commented on Sep 4, 2018

    @jbrockmendel
    Contributor

    @josef-pkt this is a pet peeve of mine, too. Let me fix it?

  2. josef-pkt commented on Sep 4, 2018

    @josef-pkt
    MemberAuthor

    I'm not sure what the status is, I think it was mostly fixed in the scale refactoring PR.
    AFAICS fit_irls still attaches to the model, but the results instance does not directly access it anymore, scale is results also results attribute.

  3. jbrockmendel commented on Sep 4, 2018

    @jbrockmendel
    Contributor

    but the results instance does not directly access it anymore

    This is a good start, reminds me of a bug in discrete_model we fixed a while back. But unless the model actually needs scale (and scaletype), it should not be set. Especially not outside of __init__/initialize. Being consistent about what are Model attrs vs Results attrs (and where they are defined) will make things better in the long run.

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