(self)
Raises a RuntimeError if the model is not ready for prediction.
Raises a RuntimeError if the model is not ready for prediction.
Raises a RuntimeError if the model is not ready for prediction .
def assert_fitted(self):
        """
        Raises a RuntimeError if the model is not ready for prediction.

        """
        if not self.fitted:
            raise RuntimeError('Model has not been fit.')
def assert_fitted ( self ) : if not self . fitted : raise RuntimeError ( 'Model has not been fit.' )