sklearn.utils.validation.check_is_fitted(estimator, attributes, msg=None, all_or_any=<built-in function all>) [source]
Perform is_fitted validation for estimator.
Checks if the estimator is fitted by verifying the presence of “all_or_any” of the passed attributes and raises a NotFittedError with the given message.
| Parameters: | 
  |  
|---|---|
| Returns: | 
  |  
| Raises: | 
  |  
    © 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
    http://scikit-learn.org/stable/modules/generated/sklearn.utils.validation.check_is_fitted.html