requires_y#
- requires_y()[source]#
Behaviour flag: transformer requires y in fit.
String name:
"requires_y"Public behaviour flag
Values: boolean,
True/FalseExample:
TrueDefault:
False
This tag applies to transformations.
If the tag is
True, the transformer requires the target data argumentyto be passed in thefitmethod, as well as in theupdatemethod. The type ofyrequired is specified by the tagscitype:transform-labels. The requirement to passyis usually in addition to passingX.If the tag is
True, it does not necessarily imply thatyis also required in thetransformorinverse_transformmethods. This may be the case, but is not implied by this tag. Usually,yis not required intransformorinverse_transform. There is currently no tag to specify this requirement, users should consult the documentation of the transformer.If the tag is
False, the transformer does not require the target data argumentyto be passed in any method.