-
Notifications
You must be signed in to change notification settings - Fork 532
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
Make get_param_names
a class method on single GPU estimators to match Scikit-learn closer
#6101
base: branch-24.12
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were none of the Cython files changed?
lol because I wrote a script to do this and only checked |
get_param_names
a class method to match Scikit-learn closer get_param_names
a class method on single GPU estimators to match Scikit-learn closer
Do you want to make them private at the same time? On the one hand, then we'd be 100% the same. On the other hand, the fact that they are private in scikit-learn makes me wonder if this matters (as they aren't part of the public API)? |
@betatim good point, I think matching as close as possible (i.e. entirely) is a good idea |
Small difference between our estimators and Scikit-learn is that
get_param_names
are a classmethod in sklearn, and not in ours. This can make a few corner cases fail for using our estimators when Scikit-learn like estimators are expected. This PR fixes that.Note: This will not include dask-based estimators for the time being since they depend on introspection at object creation time.