Why we need encoding ?
Models in machine learning and deep learning requires input and
output data to be in numeric format so the objective of encoding is to transform
data to numeric so that machine can read the same and do the predictions
Types of Encoding techniques
1) One hot encoding
In this technique we encode each category of a categorical
variable to 0 or 1 so that it converts in numeric value.
For eg. Gender: Male and female- we will transform male as 0 and
female as 1
2) Label encoding
3) Ordinal encoding
No comments:
Post a Comment