...

/

Integer or label encoding

Integer or label encoding

In this lesson, we will learn about the integer encoding technique for encoding categorical variables; we will see an illustrative example of how this method works, its advantages and limitations, and finally, a sample code showing how to use this encoder in practice.

Definition

Integer encoding or label encoding converts the categories to digits from 1 to n (or 0 to n-1), where n is the cardinality, which means the number of the ...

Create a free account to access the full course.

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