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
435 stars 98 forks source link

229 fix categorical user input preprocessing #261

Closed lassilehtonen closed 10 months ago

lassilehtonen commented 10 months ago

Fixes #229 where the user received an error when trying to manually set categorical bins, specifically when the bins have a different number of items. This happens because np.asarray() only accepts array-like data.

guillermo-navas-palencia commented 10 months ago

See my comment in #229.

guillermo-navas-palencia commented 10 months ago

I just updated develop to be up to date with master. Would you mind resolving the conflict updating your branch with the latest develop? That will solve CI issues. Thanks!

lassilehtonen commented 10 months ago

Hi, the branch is now rebased with the latest develop.