Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new __sklearn_tags__ #205

Merged
merged 4 commits into from
Dec 16, 2024
Merged

Add support for new __sklearn_tags__ #205

merged 4 commits into from
Dec 16, 2024

Conversation

stes
Copy link
Member

@stes stes commented Dec 16, 2024

Fix #204

sklearn 1.6.0 was released on Dec 9, 24 and introduced a new mechanism for specifying estimator tags (https://scikit-learn.org/dev/developers/develop.html). This PR adopts CEBRA to comply with this new notation. Older sklearn variants will fall back to the more_tags() functions as recommended in this comment.

Indepedently, I spotted a bug in the inheritance order in the CEBRA class, which was fixed now, as described here.

Finally, since the code is now version dependent and there might be users rolling older sklearn version, I extended the test suite by one case checking with a legacy sklearn version (version 1.4.2 which is roughly one year old) -- this will hopefully cover the most important cases. The majority of tests are with sklearn latest (1.6.0 as of Dec 16, 24).

@stes stes requested a review from MMathisLab December 16, 2024 17:57
Copy link
Member

@MMathisLab MMathisLab left a comment

Choose a reason for hiding this comment

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

Lgtm; but did not directly test

@stes stes merged commit 5f46c32 into main Dec 16, 2024
13 checks passed
@stes stes deleted the stes/fix-sklearn-tags branch December 16, 2024 19:32
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.

Upstream sklearn change causes error ('super' object has no attribute '__sklearn_tags__') in test suite
2 participants