is_partial_label_ranker#

sklr.base.is_partial_label_ranker(estimator: object) → bool#

Return True if the given estimator is (probably) a partial label ranker.

The estimator is taken for a partial label ranker if its estimator_type tag is "partial_label_ranker", which PartialLabelRankerMixin sets.

Parameters:
estimatorestimator instance

Estimator object to test.

Returns:
outbool

True if estimator is a partial label ranker and False otherwise.

See also

is_label_ranker

Return whether an estimator is a label ranker.

Examples

>>> from sklearn.tree import DecisionTreeClassifier
>>> from sklr.base import is_partial_label_ranker
>>> is_partial_label_ranker(DecisionTreeClassifier())
False