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
In the documentation for Bayesian ridge regression the standard deviation for the posterior distribution of the target variable is easily accessed by calling .predict(X, return_std=True).
However, there is no comparable method for accessing standard deviations for the posterior distributions of the learned parameters. The means of the parameters posterior distributions are given by .coef_ , but the corresponding standard deviation is not easily available.
Am I correct that the standard deviation would be given by the square root of the diagonal of the covariance matrix? np.sqrt(clf.sigma_.diagonal())
Suggest a potential alternative/fix
Provide an example of accessing the standard deviation of the posterior distribution of the learned parameters.
The text was updated successfully, but these errors were encountered:
Hello @marinadelaunay thanks for your interest in contributing to scikit-learn.
This issue haven't received any comment so far. It is likely to take some time before your pull request will have attention.
Perhaps #21350 is more suitable to a first contribution?
Describe the issue linked to the documentation
In the documentation for Bayesian ridge regression the standard deviation for the posterior distribution of the target variable is easily accessed by calling
.predict(X, return_std=True)
.However, there is no comparable method for accessing standard deviations for the posterior distributions of the learned parameters. The means of the parameters posterior distributions are given by
.coef_
, but the corresponding standard deviation is not easily available.Am I correct that the standard deviation would be given by the square root of the diagonal of the covariance matrix?
np.sqrt(clf.sigma_.diagonal())
Suggest a potential alternative/fix
Provide an example of accessing the standard deviation of the posterior distribution of the learned parameters.
The text was updated successfully, but these errors were encountered: