def add(self, model):
        """Adds a single model.

        Parameters
        ----------
        model : `Estimator`
        """
        if isinstance(model, (Regressor, Classifier)):
            self.models.append(model)
        else:
            raise ValueError('Unrecognized estimator.')
def add ( self , model ) : if isinstance ( model , ( Regressor , Classifier ) ) : self . models . append ( model ) else : raise ValueError ( 'Unrecognized estimator.' )
Adds a single model.

        Parameters
        ----------
        model : `Estimator`