requires_x#

requires_x()[source]#

Behaviour flag: transformer requires X in fit and transform.

  • String name: "requires_X"

  • Public behaviour flag

  • Values: boolean, True / False

  • Example: True

  • Default: True

This tag applies to transformations.

If the tag is True, the transformer requires the input data argument X to be passed in both the fit and transform methods, as well as in other methods that require input data, if available.

If the tag is False, the transformer does not require the input data argument X to be passed in any method.