-
Notifications
You must be signed in to change notification settings - Fork 392
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
Deperecated check_is_fitted call #570
Comments
Can you provide a reproducible code example where the warning appears? |
We use sklearn's Line 502 in 7d275df
Since the parameter was deprecated here, we should also remove it. The question now is if we want to deprecate it as well or just flat out remove it. My guess is that nobody uses |
It still has a use case in skorch by raising skorch specific exceptions. Since it is not being used, we can change its behavior without much consequences. A quick fix would be to check the sklearn version and make sure to call |
I just saw that the changes to
Instead, the function now only checks if there are any attributes that end on |
`check_is_fitted` was changed (see #570) in a way that we won't raise a `NotInitializedError` anymore despite the net not being initialized. This is now solved by basically porting the old `check_is_fitted` behavior to skorch.
There is also :
Should I make a separate issue for this? |
Thanks for that. Yes, please open a new issue for that. |
* Remove import-outside-toplevel from pylint Very unnecessary :/ * Make check_is_fitted work again `check_is_fitted` was changed (see #570) in a way that we won't raise a `NotInitializedError` anymore despite the net not being initialized. This is now solved by basically porting the old `check_is_fitted` behavior to skorch. * Fix multi_indexing with sklearn 0.22 sklearn's (_)safe_indexing used to work with tuples as indices, now doesn't. * Remove unnecessary import * Make convert_sklearn_metric_function work again In sklearn 0.22, make_scorer returns a special object that must be treated differently in skorch. * Update CHANGELOG
@fradav This issue can be closed, right? |
I think it can be closed. @fradav please re-open the issue if you object. |
When calling GridsearchCV I got :
This is with scikit-learn
0.22rc3
version.Regards,
The text was updated successfully, but these errors were encountered: