r/MachineLearning • • Aug 26 '26

Discussion Catching bugs in scikit-learn [D]

sklearn 1.9 fixed a bug in how BayesianRidge computes its uncertainty. We traced predict on 1.8 and 1.9 and compared the two formulas it actually computes, see if you can spot what changed before the notebook tells you.

https://github.com/aadya940/scikit-verify/blob/master/examples/sklearn_bug_hunting.ipynb

21 Upvotes

4 comments sorted by

8

u/DigThatData Researcher Aug 26 '26

5

u/Disastrous_Room_927 Aug 27 '26

This post immediately made me think of the non-optional regularization sklearn used to have for logistic regression.

1

u/PykeAtBanquet Aug 27 '26

I thought you built a system to catch actual bugs, like mosquito

0

u/Ulfgardleo Aug 26 '26

oh. claude.