One-hot vector is a binary vector used to represent categorical data
1 element is set to 1 (hot) and all other elements are 0 (cold)
If a feature has 3 categories (Red, Green, Blue) the one-hot vectors would be
- [1, 0, 0]
- [0, 1, 0]
- [0, 0, 1]
One-hot vector is a binary vector used to represent categorical data
1 element is set to 1 (hot) and all other elements are 0 (cold)
If a feature has 3 categories (Red, Green, Blue) the one-hot vectors would be