[MRG +1] Nystroem params#9166
Conversation
| Ignored by other kernels. | ||
|
|
||
| degree : float, default=3 | ||
| degree : float, default=None |
There was a problem hiding this comment.
Shall mentioned that it has been deprecated using .. deprecated::?
There was a problem hiding this comment.
It has not been deprecated. Using it with a callable (in which case it was already being ignored) is deprecated.
There was a problem hiding this comment.
Changed what? Technically the default changed but not the behavior.
I can say "Changed default value from 3 to None", not sure if that's helpful, though.
|
EDIT 2: I was actually half-not-wrong. With default arguments there is no change of behavior, but there is a change when |
raghavrv
left a comment
There was a problem hiding this comment.
This looks good to me, with a whatsnew entry. Though I'm not super familiar with this codebase.
| Ignored by other kernels. | ||
|
|
||
| degree : float, default=3 | ||
| degree : float, default=None |
|
LGTM as well. Squash merging. |
Follow up on #6145, fixes #5211, #5229.
Currently, gamma, coef0 and degree were not passed to callable kernels. That seems unexpected and prone to cause bugs, so I deprecated that behavior.
This code should work the same in all cases, except the default for the chi2 kernel, which previously errored and now uses gamma-1.