- \mu|,
\end{align}\]</div>
<p>where <span class="math notranslate nohighlight">\(U\)</span> is the target mean value for each bin, <span class="math notranslate nohighlight">\(\mu\)</span> is the total target mean. The WoE for a binary target is computed as</p>
<div class="math notranslate nohighlight">
\[\begin{align}
   \mathrm{WoE} = \log\frac{P(X|Y=0)}{P(X|Y=1)}.
\end{align}\]</div>
<p>In PiML, you can draw the WoE plot of a given feature using the keyword “xgb1_woe” followed by the name of the uni