Skip to content

Make NotInitializedError compatible with sklearn #860

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

Merged

Conversation

timokau
Copy link
Contributor

@timokau timokau commented May 24, 2022

This ensures that a user can catch the sklearn NotFittedError, just as they can with regular sklearn estimators. As discussed in #859.

This ensures that a user can catch the sklearn `NotFittedError`, just as
they can with regular sklearn estimators. As discussed in [1].

[1] skorch-dev#859
@timokau
Copy link
Contributor Author

timokau commented May 24, 2022

The test failure seems unrelated as far as I can tell.

@BenjaminBossan
Copy link
Collaborator

Thanks for the PR @timokau. I'll take a look later.

The test failure seems unrelated as far as I can tell.

Yes, related to #858

Copy link
Collaborator

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks!

@BenjaminBossan BenjaminBossan merged commit 297349d into skorch-dev:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants