Mean Encoding

Learn how to use mean encoding for categorical features.

What is mean encoding?

Mean encoding uses the mean of the target value as a new feature. It’s usually done for classification tasks, particularly a binary classification. The mean value is always on the target value. However, mean encoding can be performed on any numerical features, not only the target value. Below is an illustration of mean encoding that is not on the target value.

Get hands-on with 1400+ tech skills courses.