-
Notifications
You must be signed in to change notification settings - Fork 10
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
Reuse the scikit-learn convention for attributes with ending _
#1118
Comments
I like the |
On my end I never quite understood what the convention |
https://scikit-learn.org/dev/developers/develop.html#estimated-attributes
|
it's actually pretty obvious now that I read it. |
Great. I'll make a PR to adapt to the convention. |
Right now, the reporter do not expose the same convention than scikit-learn:
To avoid side-effect, we make sure to copy/clone the part of Python object that we want to modify. In scikit-learn,
fit
is known to have such processing. Here, it is our class constructor. We could reuse the same convention and make sure to expose attribute ending with_
to acknowledge that it is not the attribute passed in init. Concretely, we would have:@MarieS-WiMLDS What is your feeling about this part of the API?
The text was updated successfully, but these errors were encountered: