Skip to content

[MRG] Added documentation of intercept_ attribute of BayesianRidge - #13429

Merged
jnothman merged 1 commit into
scikit-learn:masterfrom
pimdh:master
Mar 12, 2019
Merged

jnothman merged 1 commit into
scikit-learn:masterfrom
pimdh:master

Conversation

@pimdh

@pimdh pimdh commented Mar 10, 2019 •

Copy link
Copy Markdown
Contributor

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.

@pimdh pimdh changed the title [MRG]Added documentation of intercept_ attribute of BayesianRidge [MRG] Added documentation of intercept_ attribute of BayesianRidge Mar 10, 2019

@jnothman jnothman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the comment about variance belongs in the description of fit_intercept.

Thanks for this!

Comment thread 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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 to add this last sentence rather in description of fit_intercept parameter

@pimdh

pimdh commented Mar 12, 2019

Copy link
Copy Markdown
Contributor Author

@agramfort & @jnothman, I have moved the line to fit_intercept.

@jnothman
jnothman merged commit c854ade into scikit-learn:master 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
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
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.

BayesianRidge is unexpectedly not Bayesian wrt intercept

3 participants