Definition
One-Hot Encoding
One-hot encoding is an encoding technique that converts categorical data into a numerical format that can be provided to machine learning algorithms to improve their predictions.
Example: The colour of a cup can be red, green or blue. One-hot encoding would encode a red-coloured cup as:
where represents that the “red flag” is marked active and the others are marked inactive, .