Categorical Variables

Categorical variables are variables that have discrete qualitative values, such as race or gender.

In most machine learning models, they can't be used as features. So one of following solutions must be used:

  • Drop Categorical Variables
  • Ordinal Encoding: Ordinal encoding assigns each unique value to a different integer.
  • One-Hot Encoding