Skip to content

TST Order array API metric tests alphabetically in test_common.py - #34133

Merged
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
lucyleeow:tst_metric_aapi
May 28, 2026
Merged

jeremiedbb merged 2 commits into
scikit-learn:mainfrom
lucyleeow:tst_metric_aapi

Conversation

@lucyleeow

Copy link
Copy Markdown
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Very much a cosmit, but I felt grouping the metrics by type (classification, continuous classification, regression, pairwise) and alphabetically within their group would be helpful when I was working on #33086, #32793 etc

AI usage disclosure

I used AI assistance for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Any other comments?

@jeremiedbb

Copy link
Copy Markdown
Member

grouping the metrics by type (classification, continuous classification, regression, pairwise) and alphabetically within their group

very hard to keep ordered in the long run :)
maybe add comments to split the groups would help

@lucyleeow

Copy link
Copy Markdown
Member Author

maybe add comments to split the groups would help

Ah yes, I meant to do that but I forgot.

very hard to keep ordered in the long run :)

Yes, it looks like we started off well with the classification metrics but then it fell off. This will quell my OCD for the time being 😅

@jeremiedbb jeremiedbb 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.

lgtm

@jeremiedbb
jeremiedbb merged commit 3080179 into scikit-learn:main May 28, 2026
33 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Array API May 28, 2026
@lucyleeow
lucyleeow deleted the tst_metric_aapi branch May 28, 2026 01:08
@jeremiedbb jeremiedbb mentioned this pull request Jun 1, 2026
16 tasks done
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 done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants