[MRG] Added documentation of intercept_ attribute of BayesianRidge#13429
Merged
jnothman merged 1 commit intoscikit-learn:masterfrom Mar 12, 2019
pimdh:master
Merged
[MRG] Added documentation of intercept_ attribute of BayesianRidge#13429jnothman merged 1 commit intoscikit-learn:masterfrom pimdh:master
jnothman merged 1 commit intoscikit-learn:masterfrom
pimdh:master
Conversation
jnothman
reviewed
Mar 11, 2019
Member
jnothman
left a comment
There was a problem hiding this comment.
I think the comment about variance belongs in the description of fit_intercept.
Thanks for this!
agramfort
reviewed
Mar 11, 2019
sklearn/linear_model/bayes.py
Outdated
| intercept_ : float | ||
| Independent term in decision function. Set to 0.0 if | ||
| ``fit_intercept = False``. This is not treated as a probabilistic | ||
| parameter and thus has no associated variance. |
Member
There was a problem hiding this comment.
+1 to add this last sentence rather in description of fit_intercept parameter
Contributor
Author
|
@agramfort & @jnothman, I have moved the line to |
jnothman
approved these changes
Mar 12, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…nRidge (scikit-learn#13429)" This reverts commit 1fa364d.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…nRidge (scikit-learn#13429)" This reverts commit 1fa364d.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Fixes #13409
What does this implement/fix? Explain your changes.
Adds note that the intercept_ parameter does not have a probabilistic posterior associated, is only a point estimate. Ideally, it would optionally be treated as a probabilistic parameter, but this is non-trivial, as the prior should be uniform, which differs from the dependent parameters.