-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEA: Ridge support for Array API compliant inputs #27800
FEA: Ridge support for Array API compliant inputs #27800
Conversation
Co-authored-by: Tim Head <[email protected]>
Co-authored-by: Tim Head <[email protected]>
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 <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
c84731a
to
8c38446
Compare
Co-authored-by: Olivier Grisel <[email protected]>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
|
||
if positive: | ||
raise ValueError( | ||
"The solvers that support positive fitting do not support " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.