NotFittedError
- exception sklearn.exceptions.NotFittedError
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.
Examples
>>> from sklearn.svm import LinearSVC >>> from sklearn.exceptions import