FEA: Ridge support for Array API compliant inputs#27800
FEA: Ridge support for Array API compliant inputs#27800betatim merged 72 commits intoscikit-learn:mainfrom
Conversation
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Tim Head <betatim@gmail.com>
Some Array API compatible libraries do not have a device called 'cpu'. Instead we try and detect the lib+device combination that does not support float64.
…test_affinity_propagation` (scikit-learn#27095) Signed-off-by: Julien Jerphanion <git@jjerphan.xyz> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
c84731a to
8c38446
Compare
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
I sympathize with you and tried to improve the code base at least a bit in the past. For the sake of this PR, I would advise to focus on the array API only. |
ogrisel
left a comment
There was a problem hiding this comment.
LGTM once all occurrences of {xp.__name__} are actually interpolated to make error messages more informative.
|
@lorentzenchr thank you for the sympathy 😁 I realize my message maybe sounded harsh, it was not meant to be, sorry about that. |
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
|
|
||
| if positive: | ||
| raise ValueError( | ||
| "The solvers that support positive fitting do not support " |
There was a problem hiding this comment.
What is "positive fitting"? Is there a different word/words that explain it or am I a rare person for not knowing what it is? Basically, can we make the error message less jargon-y?
There was a problem hiding this comment.
We should probably rephrase to "fitting with positivity constraints" or similar.
|
@betatim Franck told me he wouldn't have the time to address your feedback this week so I took the liberty to do it. There is an unrelated CI failure at APT install time for the Hopefully it's transient (although it still fails after clicking the re-run failed jobs button). EDIT: the last re-run on Azure did work. |
|
Thanks for all the work Franck and then taking over Olivier. Looks good to me and the robots are happy, so I'll click merge. |
What does this implement/fix? Explain your changes.
Follow-up to #26024
This PR is a WIP that aims at bringing support of Ridge for Array API compliant inputs, starting with SVD solver.