Skip to content

MAINT Create a private extension for sorting utilities#22760

Merged
thomasjpfan merged 3 commits intoscikit-learn:mainfrom
jjerphan:simultaneous-sort-refactor
Mar 17, 2022
Merged

MAINT Create a private extension for sorting utilities#22760
thomasjpfan merged 3 commits intoscikit-learn:mainfrom
jjerphan:simultaneous-sort-refactor

Conversation

@jjerphan
Copy link
Copy Markdown
Member

@jjerphan jjerphan commented Mar 11, 2022

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Various sorting functions are present at various places within scikit-learn.

This PR proposes grouping them in a private submodule, paving the way to a centralised definition of low-level sorting routines relying on std::algorithm.

Any other comments?

Sorting algorithms from sklearn.tree._splitter.pyx will also be moved here.

CC @thomasjpfan

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

@jjerphan jjerphan marked this pull request as ready for review March 17, 2022 08:41
Copy link
Copy Markdown
Member

@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

LGTM

@thomasjpfan thomasjpfan merged commit 0b2f4ea into scikit-learn:main Mar 17, 2022
@jjerphan jjerphan deleted the simultaneous-sort-refactor branch March 18, 2022 09:05
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
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.

3 participants