Skip to content

tools.tools namespace is counter-intuitive #4992

Open

Description

@jbrockmendel

pinv_extended is in tools.tools, but pinv and pinv2 are in tools.linalg. There should be a single obvious place for users/contributors to look for linalg-related functions.

Activity

  1. added this to the 0.11 milestone on Oct 20, 2018
  2. josef-pkt commented on Oct 20, 2018

    @josef-pkt
    Member

    related question: should we privatize and add leading underscore to linalg module name.
    Those functions may be useful also to other packages, but then we need to apply some weak backwards compatibility policy to them.

    I have two new linalg functions in #2744 GAM, and we can also consolidate the constraint transformation in linalg.
    Again, I don't remember where I put the project functions. I needed a full file search to find them in stats.multivariate_tools as project_partial (together with CCA functions).
    My guess is some OLS absorb functions could also go into linalg.

    #4719 (closed, not merged) moved some MixedLM linalg tools
    #4143 (open) will add some _cov_tools but the pure tools are vec, vech and similar, not linalg, i.e. that would be more appropriate for a more generic matrix_tools

  3. modified the milestones: 0.11, josef on Oct 5, 2019
  4. josef-pkt commented on Nov 8, 2019

    @josef-pkt
    Member

    an old module with different name pattern
    from statsmodels.stats.moment_helpers import cov2corr

    I was initially looking for cov2corr under a tools name

    rename helpers -> tools ?
    maybe merge, combine with other cov tools ?

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions