Get Help And Discuss STEM Concepts From Math To Data Science & Financial Literacy
STEM Gender Equality | Join us on ZOOM | Spreading Mathematical Happiness

Help The Education Support Forum through MathsGee serve learners across Africa with a DONATION

0 like 0 dislike
9 views
We know that one hot encoding increasing the dimensionality of a data set. But, label encoding doesn’t. How ?
in Data Science by Diamond (49,546 points) | 9 views

1 Answer

0 like 0 dislike

Using one hot encoding, the number of  features in a data set increases because it creates a new variable for each level present in categorical variables. For example: let’s say we have a variable ‘color’. The variable has 3 levels namely Red, Blue and Green. One hot encoding ‘color’ variable will generate three new variables as Color.RedColor.Blue and Color.Green containing 0 and 1 value.

In label encoding, the levels of a categorical variables gets encoded as 0 and 1, so no new variable is created. Label encoding is majorly used for binary variables.

by Wooden (3,101 points)

Related questions

0 like 0 dislike
0 answers
0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Mar 11, 2019 in Data Science by Edzai Zvobwo Bronze Status (8,427 points) | 20 views
0 like 0 dislike
0 answers
0 like 0 dislike
0 answers
asked Aug 31, 2019 in Computer Science by Tedsf Diamond (49,546 points) | 11 views
0 like 0 dislike
0 answers
0 like 0 dislike
1 answer

Welcome to MathsGee Q&A Bank, Africa’s largest personalized STEM and Financial Literacy education network that helps people find answers to problems, connect with others and take action to improve their outcomes.


MathsGee Q&A is the STEM and Financial Literacy knowledge-sharing community where students and experts put their heads together to crack their toughest questions.


Help The Education Support Forum through MathsGee serve learners across Africa with a DONATION

Enter your email address:

11,239 questions
9,393 answers
96 comments
10,268 users