Skip to content

FIX Pass instances to the constructor of the meta-estimator in SVC#6471

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.04from
betatim:svc-instances-instead-of-classes
Mar 20, 2025
Merged

FIX Pass instances to the constructor of the meta-estimator in SVC#6471
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.04from
betatim:svc-instances-instead-of-classes

Conversation

@betatim
Copy link
Copy Markdown
Member

@betatim betatim commented Mar 20, 2025

The estimator attribute is used in the scikit-learn tags machinery to figure out what tags the meta estimator has. We pass a default constructed instance as it isn't actually used.

This was found as part of #6438 but can be fixed standalone. The problem isn't with the new scikit-learn version, but we discovered it with it.

cc @viclafargue

The `estimator` attribute is used in the scikit-learn tags machinery to
figure out what tags the meta estimator has. We pass a default
constructed instance as it isn't actually used.
@betatim betatim requested a review from a team as a code owner March 20, 2025 16:26
@betatim betatim requested review from bdice and viclafargue March 20, 2025 16:26
@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Mar 20, 2025
Copy link
Copy Markdown
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

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

:shipit:

@jcrist jcrist added bug Something isn't working non-breaking Non-breaking change labels Mar 20, 2025
@viclafargue
Copy link
Copy Markdown
Contributor

LGTM. Thanks a lot @betatim for noticing and fixing this!

@betatim
Copy link
Copy Markdown
Member Author

betatim commented Mar 20, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 93b5b73 into rapidsai:branch-25.04 Mar 20, 2025
@betatim betatim deleted the svc-instances-instead-of-classes branch March 21, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants