Skip to content

Sklearn compatible multi feature transformer  #343

@lcrmorin

Description

@lcrmorin

I have found myself in a position to need a practical way to apply binning + WoE encoding on all features of a dataset. As I was not able to find the solution within the package I have implemented a custom sklearn compatible version myself. Typically it works as follows:

OBT = OptBinningTransformer()
X_WoE = OBT.fit_transform(X, y)

I have made some effort to comment / sanitise / make it customisable / handle types / define some tests. Would it be a good idea to integrate this ? Where ?

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions