Class CategoricalArrayTransformation (1.36.4)

CategoricalArrayTransformation(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Treats the column as categorical array and performs following transformation functions.

  • For each element in the array, convert the category name to a dictionary lookup index and generate an embedding for each index. Combine the embedding of all elements into a single embedding using the mean.
  • Empty arrays treated as an embedding of zeroes.

Methods

CategoricalArrayTransformation

CategoricalArrayTransformation(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Treats the column as categorical array and performs following transformation functions.

  • For each element in the array, convert the category name to a dictionary lookup index and generate an embedding for each index. Combine the embedding of all elements into a single embedding using the mean.
  • Empty arrays treated as an embedding of zeroes.

CategoricalArrayTransformation

CategoricalArrayTransformation(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Treats the column as categorical array and performs following transformation functions.

  • For each element in the array, convert the category name to a dictionary lookup index and generate an embedding for each index. Combine the embedding of all elements into a single embedding using the mean.
  • Empty arrays treated as an embedding of zeroes.