본문으로 건너뛰기

One-hot encoding

Representing categorical data as a vector in which:1

  • One element is set to 1.
  • All other elements are set to 0.

One-hot encoding is commonly used to represent strings or identifiers that have a finite set of possible values..1