Label Encoding

Learn how to encode categorical features with the label encoding method.

What is label encoding?

We all know that the machine learning algorithm can only deal with numerical features. However, in most scenarios, categorical features are prevalent. For example, a person’s gender, address, product type, weather, and so on are categorical features. To ensure the machine learning algorithm can use this information (features or fields), we need to transform these categorical features into numerical features. Label encoding is one of the methods used for this ...