This is documentation for an old release of Scikit-learn (version 1.2). Try the latest stable release (version 1.6) or development (unstable) versions.

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.