Build a Bagging ensemble of estimators from the training set (X, y).
- Parameters
- X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples.
- yarray-like of shape (n_samples,)
The target values.
- Returns
- selfobject
Returns self.