compute_weight_of_evidence: Compute weight of evidence
Description
Weight of evidence is an aggregation function that can be used for
build_target_encoding. Weight of evidence is the ln(P(most freq element) / (1 - P(most frq element))).
Usage
compute_weight_of_evidence(x)
Value
Weight of evidence
Arguments
x
A list of categorical elements
Details
To be more generic, the library compute P(most freq element) inplace of traditional formula ln(P(1)/P(0))