class_docstr: Compatibility layer from River to scikit-learn for regression.
  
  Parameters
  ----------
  river_estimator
class_docstr_tok: ["Compatibility","layer","from","River","to","scikit-learn","for","regression",".","Parameters","--","--","--","--","--","river_estimator"]
code: def __init__(self, river_estimator: base.Regressor):
      # Check the estimator is a Regressor
      if not isinstance(river_estimator, base.Regressor):
          raise ValueError("river_estimator is not a Regressor")
  
      self.river_estimator = river_estimator
  
imports: from __future__ import annotations
  import copy
  import typing
  import numpy
  from sklearn import base
  from sklearn import pipeline, preprocessing, utils
  from river import base, compose, stream
label_desc: Use image node_id 1 to create a new River2SKLRegressor object from inherited base classes: River2SKLBase, sklearn_base with example: obj = River2SKLRegressor(river_estimator)