Advertisement
Beginner AI Data Preparation & Feature Engineering, Encoding Categorical Variables

What is Encoding Categorical Variables

Short answer

Encoding categorical variables is the process of converting non numeric categories, like colors or city names, into numeric form that a machine learning model can use.

Save AI Data Preparation & Feature Engineering mock interview
Advertisement
AModel answer
Encoding categorical variables is the process of converting non numeric categories, like colors or city names, into numeric form that a machine learning model can use.
Real-world example
A dataset with a color column containing red, blue, and green is one hot encoded into three separate numeric columns before training a model.
Likely follow-ups
  • What is AI Data Preparation & Feature Engineering, How is Encoding Categorical Variables evaluated in practice, What tools are commonly used for Encoding Categorical Variables
Related topics