Repository navigation
DOC adding valid intervals for SGDClassifier class parameters - #22115
Conversation
ogrisel
left a comment
There was a problem hiding this comment.
Thanks for the PR. Please find my comments below:
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Reminder: update glossary as well Co-authored-by: Olivier Grisel <[email protected]>
|
Since the PR is tagged as WIP, @reshamas did you have any other changes in mind or we can merge this PR as-is? |
Looks like I ought to probably add ranges for these numerical parameters, right?
|
|
|
||
| power_t : float, default=0.5 | ||
| The exponent for inverse scaling learning rate [default 0.5]. | ||
| Values should be in the range `(-inf, inf)`. |
There was a problem hiding this comment.
I do not anticipate negative power_t to be mathematically meaningful but apparently our code accepts it without crashing... So ok with documenting it.
There was a problem hiding this comment.
I feel like this a case where documenting -inf will lead to more people trying out. If this is not mathematically meaningful, then we could be promoting a bad practice?
There was a problem hiding this comment.
I tested the code in the Binder notebook.
We can open up an issue to address this. Or, is this something that can be set up with tests in the next step, which will be adding check_scalar functions?
Co-authored-by: Olivier Grisel <[email protected]>
glemaitre
left a comment
There was a problem hiding this comment.
Otherwise LGTM. We can look at the problem of negative power_t in a dedicate issue.
|
Reminder to self: |
Reference Issues/PRs
References #21927
What does this implement/fix? Explain your changes.
Add possible interval ranges for various parameters in class
SGDClassifierAny other comments?
#DataUmbrella #postsprint
Reference
SGDClassifier documentation