-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Warnings in common tests about set_params #12652
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
Comments
It looks like scikit-learn/sklearn/linear_model/stochastic_gradient.py Lines 103 to 106 in dbd28e7
For example, using |
IIRC we have several places where we still validate in `__init__` (as well
as `fit`), which is consistent with validating in `set_params` (or
`__setattr__`).
|
So we should change the test? Or discontinue that practice? I would lean towards former but we tend to to the latter usually... |
I was always under the impression that parameter validation should be done at the beginning of |
Yes, this is something that has become tacitly standardised over time, but we have some legacy behaviour. It is hard to strictly maintain backwards compatibility while removing that legacy behaviour, but I'm okay to see what it looks like, or give up on strict compat. |
I think this is inconsistent, but fairly innocuous... do we want to fix it? |
I would want to fix this to have a consistent API. The most conservative fix would be to issue a Personally, I would prefer moving the validation into |
take |
removed the milestone, PR is now WIP. |
There's a bunch of "ValueError occurred during set_params.", introduced in #7760. This doesn't look good imho because it probably means we're violating API somewhere. We should investigate.
The text was updated successfully, but these errors were encountered: