Skip to content

REF: internal API change in penalties. Penalty classes #4642

Open

Description

@josef-pkt

the Penalty class has currently alpha and wts as argument or attributes.

In my penalized PR I used pen_weight instead of alpha in the model, and full name weights instead of wts.

AFAICS based on a file search, the penalty classes are currently only used in mixed_linear_model and the corresponding unit tests.

renaming alpha in fit_regularized would be an external backwards incompatible change.

The separation between alpha/pen_weights and weights is not clear or consistent because alpha, as specified by users in fit_regularized can also be a vector that then corresponds to alpha * weights or pen_weight * weights.
In general, we need the full weights vector (if needed) and some weight parameter like alpha or pen_weights that are chosen by cross-validation or similar. I.e. weights are fixed, but pen_weights or alpha are part of the model search.

Activity

  1. added this to the 0.10 milestone on May 16, 2018
  2. josef-pkt commented on May 16, 2018

    @josef-pkt
    MemberAuthor

    another possible name change: grad -> deriv

    • genmod links use deriv and deriv2, and __call__
    • (in the old times we/I used jac for score_obs which is mostly gone.)
    • robust norms use greek: rho = func, psi = deriv, psi_deriv=deriv2
    • genmod varfuncs use derive and don't have deriv2
    • gee cov_struct don't have derivatives
    • ???
    • nonparametric kernel function and classes have different methods, no derivatives.
  3. josef-pkt commented on May 18, 2018

    @josef-pkt
    MemberAuthor

    I'm deprecating grad and wts in penalties in #4576
    mixed_linear_model needed renaming for grad
    @kshedden

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