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
When running a fit with a Ride regression model we get:
DeprecationWarning: The 'sym_pos' keyword is deprecated and should be replaced by using 'assume_a = "pos"'. 'sym_pos' will be removed in SciPy 1.11.0.
Looking through the SciPy release notes, sym_pos was actually deprecated about 5 years ago, they just forgot to add the deprecation warning. Now that they have, it is probably best to make this change now before the sym_pos keyword is actually removed.
The argument is used 4 times within sklearn/linear_model/_ridge.py.
/usr/local/lib/python3.10/site-packages/sklearn/linear_model/_ridge.py:212: DeprecationWarning: The 'sym_pos' keyword is deprecated and should be replaced by using 'assume_a = "pos"'. 'sym_pos' will be removed in SciPy 1.11.0.
return linalg.solve(A, Xy, sym_pos=True, overwrite_a=True).T
I placed #23617 on the 1.1.2 milestone. I expect it to be a part of 1.1.2.
As for the changelog, we normally do not add this type of maintenance fixes to the change log. Technically nothing broke, it's more to prevent future breakage. No strong opinion tho.
Describe the bug
When running a fit with a Ride regression model we get:
Looking through the SciPy release notes, sym_pos was actually deprecated about 5 years ago, they just forgot to add the deprecation warning. Now that they have, it is probably best to make this change now before the sym_pos keyword is actually removed.
The argument is used 4 times within sklearn/linear_model/_ridge.py.
Steps/Code to Reproduce
Expected Results
No warnings generated
Actual Results
/usr/local/lib/python3.10/site-packages/sklearn/linear_model/_ridge.py:212: DeprecationWarning: The 'sym_pos' keyword is deprecated and should be replaced by using 'assume_a = "pos"'. 'sym_pos' will be removed in SciPy 1.11.0.
return linalg.solve(A, Xy, sym_pos=True, overwrite_a=True).T
Versions
The text was updated successfully, but these errors were encountered: