W3cubDocs

/scikit-learn

sklearn.base.is_classifier

sklearn.base.is_classifier(estimator) [source]

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

Parameters:
estimator : object

Estimator object to test.

Returns:
out : bool

True if estimator is a classifier 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_classifier.html