6 Ways to Encode Features for Machine Learning Algorithms | by Anthony Cavin | Jun, 2022
Encoding categorical variables into numericPhoto by Pop & Zebra on UnsplashA machine learning algorithm needs to be able to understand the data it receives. For example, categories such as “small”, “medium”, and “large” need to be converted into numbers. To solve that, we can for example convert them into numeric labels with “1” for small, “2” for medium, and “3” for large.But is it really the best way?There are plenty of methods to encode categorical variables into numeric and each method comes with its own…