8000 [WIP] DOC Document default values for bayes.py by qdeffense · Pull Request #14518 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 12 commits into from
Aug 14, 2019

Conversation

qdeffense
Copy link
Contributor

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

@glemaitre
Copy link
Member

@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 :)

@glemaitre glemaitre changed the title Document default values for bayes.py [WIP] Document default values for bayes.py Jul 30, 2019
@glemaitre glemaitre changed the title [WIP] Document default values for bayes.py [WIP] DOC Document default values for bayes.py Jul 30, 2019
@amueller
Copy link
Member
amueller commented Aug 7, 2019

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

@qdeffense
Copy link
Contributor Author

@amueller should I keep of shape then ?

@amueller
Copy link
Member

"of shape" is apparently the way to go now.

@amueller
Copy link
Member

please merge with master to fix the CI

Copy link
Member
@NicolasHug NicolasHug left a 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.


threshold_lambda : float, optional
threshold_lambda : float, default=1.e+4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
threshold_lambda : float, default=1.e+4
threshold_lambda : float, default=10000

Or 10,000 or 10 000, whichever you like the most


tol : float, optional
Stop the algorithm if w has converged. Default is 1.e-3.
tol : float, default=1.e-3
Copy link
Member

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

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
copy_X : bool, default=True.
copy_X : bool, default=True

@amueller amueller merged commit c0e1f0a into scikit-learn:master Aug 14, 2019
@amueller
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0