Skip to content

Conversation

@nworb-cire
Copy link

This updates the estimator to comply with scikit-learn’s SelectorMixin API. With this change, the estimator behaves consistently with scikit-learn’s native selectors, allowing it to plug seamlessly into any pipeline or utility that expects the standard selector interface.

Importantly, the estimator’s underlying logic and outputs remain unchanged. The SelectorMixin class has been part of scikit-learn since version 0.11 (released in 2012), so this update introduces no backward-compatibility concerns.

@solegalli
Copy link
Collaborator

Hi @nworb-cire

I am Sole, helping @danielhomola maintain the library.

The proposed change makes sense, thanks a lot for the PR.

Could you please rebase master onto this? We just migrated from unittest to pytest and added automatic testing to make reviewing easier.

It would also be helpful if you could add a few tests that evaluate that the addition you are making here result in the expected functionality.

I tried to look at the source code of SelectorMixin vs TransformerMixin earlier today, but the website was on maintenance, so I don't have on the top of my head the differences brought forward by this change, but these are the ones that we'd need tests for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants