Label Encoder vs. One Hot Encoder in Machine Learning
If you're new to Machine Learning, you might get confused between these two – Label Encoder and One Hot Encoder. These two encoders are parts of the SciKit Learn library in Python, and they are used to convert categorical data, or text data, into numbers, which our predictive models can better understand. Today, let's understand the difference between the two with a simple example. To begin with, you can find the SciKit Learn documentation for Label Encoder here. Now, let's consider the following data: In this example, the first column is the country column, which is all text.
Oct-18-2019, 06:05:33 GMT
- Technology:
- Information Technology
- Data Science (0.71)
- Artificial Intelligence > Machine Learning (0.62)
- Modeling & Simulation (0.57)
- Information Technology