class_docstr: Base class for all ensemble classes.
  
  Warning: This class should not be used directly. Use derived classes
  instead.
  
  Parameters
  ----------
  estimator : object
      The base estimator from which the ensemble is built.
  
  n_estimators : int, default=10
      The number of estimators in the ensemble.
  
  estimator_params : list of str, default=tuple()
      The list of attributes to use as parameters when instantiating a
      new base estimator. If none are given, default parameters are used.
  
  base_estimator : object, default="deprecated"
      Use `estimator` instead.
  
      .. deprecated:: 1.2
          `base_estimator` is deprecated and will be removed in 1.4.
          Use `estimator` instead.
  
  Attributes
  ----------
  estimator_ : estimator
      The base estimator from which the ensemble is grown.
  
  base_estimator_ : estimator
      The base estimator from which the ensemble is grown.
  
      .. deprecated:: 1.2
          `base_estimator_` is deprecated and will be removed in 1.4.
          Use `estimator_` instead.
  
  estimators_ : list of estimators
      The collection of fitted base estimators.
code: def __init__(
      self,
      estimator=None,
      *,
      n_estimators=10,
      estimator_params=tuple(),
      base_estimator="deprecated",
  ):
      # Set parameters
      self.estimator = estimator
      self.n_estimators = n_estimators
      self.estimator_params = estimator_params
      self.base_estimator = base_estimator
  
imports: import warnings
  from abc import ABCMeta, abstractmethod
  from typing import List
  import numpy
  from joblib import effective_n_jobs
  from ..base import BaseEstimator, MetaEstimatorMixin, clone, is_classifier, is_regressor
  from ..utils import Bunch, _print_elapsed_time, check_random_state, deprecated
  from ..utils.metaestimators import _BaseComposition
label_desc: Use image node_id 1 to create a new BaseEnsemble object from inherited base classes: MetaEstimatorMixin, BaseEstimator with example: obj = BaseEnsemble(estimator)