-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG + 1] adding sample weights for BayesianRidge #10112
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
[MRG + 1] adding sample weights for BayesianRidge #10112
Conversation
please update what's new |
Looks fairly straightforward to me as well. Thanks for the contribution! |
Please add an entry to the change log at |
sklearn/linear_model/bayes.py
Outdated
sample_weight : numpy array of shape [n_samples] | ||
Individual weights for each sample | ||
|
||
.. versionadded:: 0.19.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be 0.20 indeed
Codecov Report
@@ Coverage Diff @@
## master #10112 +/- ##
==========================================
+ Coverage 96.2% 96.2% +<.01%
==========================================
Files 337 337
Lines 62817 62827 +10
==========================================
+ Hits 60432 60442 +10
Misses 2385 2385
Continue to review full report at Codecov.
|
Thanks for the pointers on what's new! |
LGTM |
Thanks |
This is a first stab at adding sample_weight as a kwarg to BayesianRidge.
Seems to work well, and matches the Ridge.fit() method.
fixes #10111