Ordinal and One-Hot Encodings for Categorical Data - MachineLearningMastery.com

Machine learning models require all input and output variables to be numeric. This means that if your data contains categorical data, you must encode it to numbers before you can fit and evaluate a...

By · · 1 min read
Ordinal and One-Hot Encodings for Categorical Data - MachineLearningMastery.com

Source: MachineLearningMastery.com

Machine learning models require all input and output variables to be numeric. This means that if your data contains categorical data, you must encode it to numbers before you can fit and evaluate a model. The two most popular techniques are an Ordinal Encoding and a One-Hot Encoding. In this tutorial, you will discover how […]