#NEWLINE# def _validate_X_predict( self , X ) : #NEWLINE# #INDENT# 'Validate X whenever one tries to predict, apply, predict_proba' #NEWLINE# if ( ( self . estimators_ is None ) or ( len ( self . estimators_ ) == 0 ) ) : #NEWLINE# #INDENT# raise NotFittedError ( 'Estimator not fitted, call `fit` before exploiting the model.' ) #NEWLINE# #UNINDENT# return self . estimators_ [ 0 ] . _validate_X_predict ( X , check_input = True )