sklearn.base.is_regressor

sklearn.base.is_regressor(estimator)[source]

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

Parameters
estimatorobject

Estimator object to test.

Returns
outbool

True if estimator is a regressor and False otherwise.