...

/

Count or frequency encoding

Count or frequency encoding

Count or frequency encoding is another approach used to transform labels into numbers. We will talk about this method in this lesson while exploring the benefits and drawbacks of using this encoder, an illustrative example, and the code needed to apply this encoding technique in your projects.

Definition

Count or frequency encoding replaces the categories by the count of the observations that show that category in the dataset.

See the illustration below:

In ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy