Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.base`.is_regressor

sklearn.base.is_regressor(estimator)

  Return True if the given estimator is (probably) a regressor.

  Parameters:
    estimator estimator instance

      Estimator object to test.

  Returns:
    out bool

      True if estimator is a regressor and False otherwise.