How to Encode Categorical Features with OneHotEncoder and OrdinalEncoder ๐Ÿง 

Learn the key differences between OneHotEncoder and OrdinalEncoder for encoding categorical data, and when to use each method for your machine learning models.

How to Encode Categorical Features with OneHotEncoder and OrdinalEncoder ๐Ÿง 
Data School
36.3K views โ€ข Oct 29, 2020
How to Encode Categorical Features with OneHotEncoder and OrdinalEncoder ๐Ÿง 

About this video

Two common ways to encode categorical features:
- OneHotEncoder for unordered (nominal) data
- OrdinalEncoder for ordered (ordinal) data

P.S. LabelEncoder is for labels, not features!

๐Ÿ‘‰ New tips every TUESDAY and THURSDAY! ๐Ÿ‘ˆ

๐ŸŽฅ Watch all tips: https://www.youtube.com/playlist?list=PL5-da3qGB5ID7YYAqireYEew2mWVvgmj6
๐Ÿ—’๏ธ Code for all tips: https://github.com/justmarkham/scikit-learn-tips
๐Ÿ’Œ Get tips via email: https://scikit-learn.tips


=== WANT TO GET BETTER AT MACHINE LEARNING? ===

1) WATCH my video series: https://www.youtube.com/playlist?list=PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A

2) ENROLL in my courses: https://www.dataschool.io/ml-courses/

3) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

36.3K

Likes

606

Duration

5:16

Published

Oct 29, 2020

User Reviews

4.7
(7)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.