default_tags#
- sklearn.utils.default_tags(estimator) → Tags[source]#
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.required
will be set toTrue
, otherwise it will be set toFalse
.transformer_tags
will be set toTransformerTags
if the estimator has atransform
orfit_transform
method, otherwise it will be set toNone
.classifier_tags
will be set toClassifierTags
if the estimator is a classifier, otherwise it will be set toNone
. a classifier, otherwise it will be set toNone
.regressor_tags
will be set toRegressorTags
if 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.