One-hot encode columns
Encodes columns with N different values into N integer columns representing the original values with 0’s and 1’s.
Inputs
-
Data — Tensor
2D tensor (a table) to encode.
-
Column(s) — List of Integer
Index(es) of the column(s) to encode.
Outputs
-
Encoded data — Tensor
Resulting encoded table.