A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scikit-learn.org/dev/developers/../api/../modules/generated/sklearn.base.is_classifier.html below:

is_classifier — scikit-learn 1.8.dev0 documentation

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.

Examples

>>> from sklearn.base import is_classifier
>>> from sklearn.cluster import KMeans
>>> from sklearn.svm import SVC, SVR
>>> classifier = SVC()
>>> regressor = SVR()
>>> kmeans = KMeans()
>>> is_classifier(classifier)
True
>>> is_classifier(regressor)
False
>>> is_classifier(kmeans)
False

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4