You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
REF: internal API change in penalties. Penalty classes #4642
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
josef-pkt commentedon May 16, 2018
another possible name change:
grad->deriv__call__jacfor score_obs which is mostly gone.)REF: _penalties: rename and deprecate grad and wts/wt see statsmodels…
josef-pkt commentedon May 18, 2018
I'm deprecating
gradandwtsin penalties in #4576mixed_linear_model needed renaming for grad
@kshedden
REF: _penalties: rename and deprecate grad and wts/wt see statsmodels…