scikit_learn / latest / modules / generated / sklearn.base.is_classifier.html

sklearn.base.is_classifier

sklearn.base.is_classifier(estimator)[source]

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

Parameters:
estimatorobject

Estimator object to test.

Returns:
outbool

True if estimator is a classifier and False otherwise.

© 2007–2022 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.1/modules/generated/sklearn.base.is_classifier.html