W3cubDocs

/scikit-learn

sklearn.base.is_regressor

sklearn.base.is_regressor(estimator) [source]

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

Parameters:
estimator : object

Estimator object to test.

Returns:
out : bool

True if estimator is a regressor and False otherwise.

© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.base.is_regressor.html