-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[WIP] DOC Document default values for bayes.py #14518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@qdeffense I might advise waiting a resolution regarding the standard that we would like to follow regarding the docstring formatting. We might not review this PR before having made a choice in #12356. You will need to be patient then :) |
Sorry to give confusing signals, I think I prefer the previous version but I think I have to take it up with the approvers of #12356 |
@amueller should I keep |
"of shape" is apparently the way to go now. |
please merge with master to fix the CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @qdeffense . A few nitpicks but LGTM.
sklearn/linear_model/bayes.py
Outdated
|
||
threshold_lambda : float, optional | ||
threshold_lambda : float, default=1.e+4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
threshold_lambda : float, default=1.e+4 | |
threshold_lambda : float, default=10000 |
Or 10,000
or 10 000
, whichever you like the most
sklearn/linear_model/bayes.py
Outdated
|
||
tol : float, optional | ||
Stop the algorithm if w has converged. Default is 1.e-3. | ||
tol : float, default=1.e-3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for a dot: 1e-3
is enough. Same everywhere else
sklearn/linear_model/bayes.py
Outdated
This parameter is ignored when ``fit_intercept`` is set to False. | ||
If True, the regressors X will be normalized before regression by | ||
subtracting the mean and dividing by the l2-norm. | ||
If you wish to standardize, please use | ||
:class:`sklearn.preprocessing.StandardScaler` before calling ``fit`` | ||
on an estimator with ``normalize=False``. | ||
|
||
copy_X : boolean, optional, default True. | ||
copy_X : bool, default=True. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy_X : bool, default=True. | |
copy_X : bool, default=True |
thanks! |
Reference Issues/PRs
Partially addresses #14452 and #14404
What does this implement/fix? Explain your changes.
Document default values of bayes.py and standardize parameters and attributes