You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BayesianRidge is unexpectedly not Bayesian wrt intercept #13409
Contrary to what I expected, BayesianRidge is not Bayesian w.r.t. the intercept parameter. This leads to the undesired outcome that all lines sampled from the parameter posterior go through the same point at the input x=0.
A manual workaround is to add a 1 column to the input and set fit_intercept=False. Then coef_ has the shape (d+1,) and sigma_ the shape (d+1, d+1).
Maybe this can be integrated into the current API. If there's an API change that's sensible, I'm happy to file a PR.
Thanks for the report. I think we should start by more clearly documenting
the current behaviour, unless it is certainly a bug. Would you be willing
to submit a PR for the documentation?
Activity
agramfort commentedon Mar 7, 2019
pimdh commentedon Mar 7, 2019
agramfort commentedon Mar 7, 2019
jnothman commentedon Mar 10, 2019
pimdh commentedon Mar 10, 2019
@jnothman, I have filed a PR.