Encoding
Learn how to encode variables.
We'll cover the following
Encoding refers to the process of converting categorical features into numerical features so that ML algorithms can use them. Categorical features can take on a limited number of values and are unordered, making them difficult for algorithms to handle. By encoding these features, we can convert them into numerical representations that can be useful for ML algorithms.
It’s common in ML to have categorical features—such as “Sex,” “Zip code,” and “Profession”—that need to be transformed before they can be ingested by an ML algorithm. The table below features this type of categorical data:
Get hands-on with 1200+ tech skills courses.