get_tags#

sklearn.utils.get_tags(estimator) Tags[源代码]#

获取估计器标签。

BaseEstimator 提供估计器标签机械。然而,如果估计器没有继承自此基本类,则我们应该退回到默认标签。

For scikit-learn built-in estimators, we should still rely on self.__sklearn_tags__(). get_tags(est) should be used when we are not sure where est comes from: typically get_tags(self.estimator) where self is a meta-estimator, or in the common checks.

Added in version 1.6.

参数:
estimator估计器对象

要从中获取标记的估计器。

返回:
tags : Tags标签

估计器标签。