code: def __init__(self, base_estimator: RegressorMixin = None, **kwargs):
      if base_estimator is not None:
          self.base_estimator = clone(base_estimator)
      else:
          base_estimator = LinearRegression()
      self.base_estimator = base_estimator
      super().__init__(**kwargs)
  
file_path: imodels/imodels/experimental/bartpy/extensions/baseestimator.py
imports: import numpy
  from sklearn.base import RegressorMixin, clone
  from ..sklearnmodel import SklearnModel
label_desc: Use image node_id 1 to create a new ResidualBART object from inherited base classes: SklearnModel with example: obj = ResidualBART(base_estimator)