Skip to main content
def WoeEncoderWorker.fit(self, inputs, fx_choice=REG.GINI, **params) [source]
Fit WOE encoding on all encoded features. For each feature: prunes bins using the selected strategy (Gini or t-test), computes WOE values, gates on predictive power, and stores the final encoding.

Parameters

inputs : WoeEncoderEnvelope | WoeEncoderInput
Input configuration containing train_set, target, and
feature lists.
fx_choice : str
The bin pruning strategy. Defaults to REG.GINI.
**params : dict
Runtime parameters passed to the internal fitter
(gini_cutoff, woe_alpha).

Returns

WoeEncoder
The fitted encoder instance.