Skip to content

Clarifying the use of TargetTags.multi_output for transformers #30522

Answered by glemaitre
grovduck asked this question in Q&A
Discussion options

You must be logged in to vote

"does not use y and thus does not use the TargetTags"

Indeed.

Because our transformers have BaseEstimator as a base class, I assume we'd need to do something like

By default, BaseEstimator define:

target_tags=TargetTags(required=False),

So it is again a backward compatibility things. We could have chosen to have target_tags=None but because in previous version, the tags existed, required=False overwrite the meaning of all other tags within target_tags.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@grovduck
Comment options

@glemaitre
Comment options

Answer selected by grovduck
Comment options

You must be logged in to vote
2 replies
@grovduck
Comment options

@glemaitre
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants