NotFittedError¶
- class NotFittedError(*args, **kwargs)[source]¶
Exception class to raise if estimator is used before fitting.
This class inherits from both ValueError and AttributeError to help with exception handling and backward compatibility.
References
[1]Based on scikit-learn’s NotFittedError
Deprecated since version 0.9.0: NotFittedError will be removed in v0.10.0. Use the sklearn version of the warning.
Methods
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.