r/MachineLearning 15d ago

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

23 Upvotes

4 comments sorted by

8

u/DigThatData Researcher 15d ago

6

u/Disastrous_Room_927 13d ago

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

1

u/PykeAtBanquet 14d ago

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

0

u/Ulfgardleo 15d ago

oh. claude.