guillermo-navas-palencia / optbinning

Optimal binning: monotonic binning with constraints. Support batch & stream optimal binning. Scorecard modelling and counterfactual explanations.
http://gnpalencia.org/optbinning/
Apache License 2.0
434 stars 98 forks source link

For different special values ,how to assign different metric_special value? #293

Open SandipKhaire opened 6 months ago

SandipKhaire commented 6 months ago

First of all thanks for such lovely package and really appreciated for you effort. So i have say 3 special values as special_codes = {'special_1': -9, "special_2": -8, "special_3": -7}, then while transforming how should i specify for special_1 use metric special as empirical woe, for special_2 use numerical value say -0.346 and for special_3 use 0 woe. Currently i think we can only pass single metric special to different special values.

guillermo-navas-palencia commented 6 months ago

Hi @SandipKhaire.

You are correct, the current implementation only supports a single metric special.