Mean or target encoding
Mean encoding (also known as target encoding) is a frequently used technique for encoding categorical variables. The objective of this lesson is to learn this method, its advantages and drawbacks, an illustration of the encoding process, and the code needed to use this encoder in practice.
Definition
Target encoding is the process of replacing a categorical value with the mean of the target variable for that category. First, we calculate the ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy