Skip to content

FIX make check_array accept sparse inputs when array api dispatch is enabled - #29469

Closed
ogrisel wants to merge 2 commits into
scikit-learn:mainfrom
ogrisel:fix-check_array-on-sparse-intput-with-array_api_dispatch-enabled
Closed

ogrisel wants to merge 2 commits into
scikit-learn:mainfrom
ogrisel:fix-check_array-on-sparse-intput-with-array_api_dispatch-enabled

Conversation

@ogrisel

@ogrisel ogrisel commented Jul 11, 2024

Copy link
Copy Markdown
Member

Fixes #29452

This is a minimal fix for #29452 that only changes check_array without attempting to make get_namespace accept sparse inputs or reject them more that in already does (that is, only when array_api_dispatch=True at the time of writing).

This is an alternative to #29466.

@github-actions

github-actions Bot commented Jul 11, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 39760c8. Link to the linter CI: here

@ogrisel

ogrisel commented Jul 11, 2024

Copy link
Copy Markdown
Member Author

As seen in #29470, this is a very partial fix for this kind of problem. Let's not merge this PR as long as we do not find a consensus in the discussion running in the alternative #29466 PR.

@ogrisel

ogrisel commented Jul 29, 2024

Copy link
Copy Markdown
Member Author

Closing in favor of either #29466 or #29476.

@ogrisel ogrisel closed this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array API regression in homogeneity_completeness_v_measure?

1 participant