Skip to content

BUG/Review: fit_constrained, scale and cov_type #4193

Closed

Description

@josef-pkt

most likely a serious bug-wrong #3856 (comment)
GLM gaussian with fit_constrained has wrong cov_params, applies scale twice.
unit tests for fit_constrained are only for Poisson and Logit/Binomial for discrete models and GLM, AFAICS

Also, there are no unit tests of fit_constrained with cov_type. fit_constrained PR predates adding cov_type to fit, but came a bit after the initial discrete sandwich code.

possible solution for scale bug is to either

  • assign to cov_params_default instead of normalized_cov_params, but that is also used for cov_type, or
  • take out the scale before assigning to normalized_cov_params. or
  • return normalized_cov_params instead of cov_params in base._constraints.fit_constrained

Activity

  1. added
    type-bug-wrong
    on Jan 7, 2018
  2. added this to the 0.9 milestone on Jan 7, 2018
  3. josef-pkt commented on Jan 7, 2018

    @josef-pkt
    MemberAuthor

    another smaller issue: the results returned by fit_constrained don't show the correct optimization setting, e.g. method is IRLS even though the constrained auxiliary model uses the correct newton or bfgs

    In [31]:
    res_glm_c.results_constrained.method
    Out[31]:
    'newton'
    

    mle_settings is still not consistently attached to the GLM results (in fit), mle_results is available

  4. added 2 commits that reference this issue on Jan 8, 2018
    ba00e63
    a2e65a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-basecomp-genmodprio-hightype-bug-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions