Course Content

  • 2_4_Encoding_Categorical_Data

Course Content

FAQs

The categorical feature is initially transformed to numerical using an ordinal encoder in this encoding approach. The numbers are then converted to binary numbers. Following that, the binary value is divided into columns. When there are a large number of categories, binary encoding works extremely well.

When missing values come from categorical columns, such as string or numerical, they might be replaced with the most common category. If there are a large number of missing values, the category can be replaced with a new one.

There are many ways to encode categorical data. Some of the most common ways include:

  • Binary encoding: encoding the categorical variable as a binary variable with two levels, 0 and 1.
  • Ordinal coding: coding the categorical variable as an ordinal variable that has no order or magnitude.
  • Nominal coding: encoding the categorical variable as a nominal variable that has no order or magnitude.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere