Open TamaraAtanasoska opened 1 month ago
Thanks for checking this @TamaraAtanasoska . Yeah it makes sense what you suggest. We should have those sklearn imports as optional, as in, ignoring import errors if it happens, and the rest of the code should be fine. We should clearly document in the code why those imports are not needed in new sklearn versions.
Hi! I started to look into the compatibility issues that
sckit-learn
1.6 brings.Specifically the 34 test failures regarding imports from the now refactored
sklearn.linear_model._sgd_fast
m module (main refactor diff). Example:Talking to a scikit-learn maintainer, it seems the
SGD
related could be possibly removed, as any of the classes in loss.py don't have a__reduce__
method. Just like this block, the old way can be preserved to supportscikit-learn
1.5 or older. The mapping will need to be updated too.Posting this issue for documentation of the efforts and discussions. I couldn't find a similar one, let me know if I have missed it.