...

/

Weight of evidence encoding

Weight of evidence encoding

This lesson will talk about a categorical encoding technique called the weight of evidence encoding. We will also cover the advantages and disadvantages of its use and an example and a sample code to apply the weight of the evidence encoder.

Definition

The weight of evidence (WOE) tells the predictive power of an independent variable in relation to the dependent variable. This technique is usually used to encode categorical variables for classification.

The mathematical formula to calculate the WOE is :

WOE=ln(p(1)/p(0))WOE = ln (p (1) / p (0)) ...

Create a free account to access the full course.

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