Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNT replace array-api-extra nan reduction functions - #34854

Merged
ogrisel merged 1 commit into
scikit-learn:mainfrom
OmarManzoor:ref_array_api_utils
Aug 31, 2026
Merged

MNT replace array-api-extra nan reduction functions#34854
ogrisel merged 1 commit into
scikit-learn:mainfrom
OmarManzoor:ref_array_api_utils

Conversation

@OmarManzoor

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Follow up of #34851

What does this implement/fix? Explain your changes.

Uses the array-api-extra functions

  • nanmin
  • nanmax
  • nanmean
  • nansum

and removes the private utilities in _array_api utils.

Any other comments?

CC: @ogrisel. I tried looking at cov too but that implementation is slightly different from what we have in our utils considering we have an additional parameter mean that the array-api-extra implementation does not.

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

image

Let me start an Intel GPU run on this branch: https://github.com/probabl-ai/scikit-learn-intel-workflow/actions/runs/33380159538

Will merge if all green.

@OmarManzoor

Copy link
Copy Markdown
Contributor Author

@ogrisel Seems like the intel workflow got cancelled

@ogrisel

ogrisel commented Aug 31, 2026

Copy link
Copy Markdown
Member

That's expected if @cakedev0's laptop is not online. But that's fine. The other runs are green.

Edit: Actually no, that's not expected that they are all cancelled. I ll give it a look later.

@ogrisel

ogrisel commented Aug 31, 2026

Copy link
Copy Markdown
Member

I think the Intel GPU won't be available for a few hours because it is being used by long running benchmarking tasks.

Let's merge.

@ogrisel
ogrisel merged commit 8a6f766 into scikit-learn:main Aug 31, 2026
54 of 56 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Array API Aug 31, 2026
@OmarManzoor
OmarManzoor deleted the ref_array_api_utils branch August 31, 2026 12:25
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants