text: from __future__ import absolute_import
  from sklearn.base import BaseEstimator
  from sklearn.ensemble import RandomForestRegressor
  
  
  class Regressor(BaseEstimator):
      
      def __init__(self):
          self.reg = RandomForestRegressor()
  
      def fit(self, X, y):
          return self.reg.fit(X, y)
  
      def predict(self, X):
          return self.reg.predict(X)