default_tags#
- sklearn.utils.default_tags(estimator) → Tags[المصدر]#
Get the default tags for an estimator.
This ignores any
__sklearn_tags__method that the estimator may have.If the estimator is a classifier or a regressor,
target_tags.requiredwill be set toTrue, otherwise it will be set toFalse.transformer_tagswill be set toTransformerTagsif the estimator has atransformorfit_transformmethod, otherwise it will be set toNone.classifier_tagswill be set toClassifierTagsif the estimator is a classifier, otherwise it will be set toNone. a classifier, otherwise it will be set toNone.regressor_tagswill be set toRegressorTagsif the estimator is a regressor, otherwise it will be set toNone.- Parameters:
- estimatorestimator object
The estimator for which to get the default tags.
- Returns:
- tagsTags
The default tags for the estimator.