Make NotInitializedError
a subclass of NotFittedError
#859
Labels
NotInitializedError
a subclass of NotFittedError
#859
Hi,
currently calling
predict
on an uninitialized estimator throws aNotInitializedError
instead of scikit-learn'sNotFittedError
. This is problematic in cases where we want to be able to handle different kinds of estimators while providing some kind of fallback behavior. Currently we needI think it would be better if
NotInitializedError
was a subclass ofNotFittedError
. In that case we could treat an skorch estimator like a regular scikit-learn estimator and simply catchNotFittedError
.Would a PR in that direction be welcome?
The text was updated successfully, but these errors were encountered: