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
452 stars 100 forks source link

Add plot at BinningProcess level #320

Open bmreiniger opened 3 months ago

bmreiniger commented 3 months ago

Closes #315

See the three new png test results, and the last cell of the modified doc/...FICO... notebook.

This draft adds the multi-plot to BinningProcess, and modifies the BinningTable.plot method to suit. We need to add the same sort of thing to the other single-var binners, ContinuousBinningTable.plot and MulticlassBinningTable, and reconcile any differences in how those three operate.

I'm not so familiar with the multidimensional, piecewise, or streaming binners; maybe something needs/should be done there too.

Other TODOs:

(I wonder whether we can refactor a bit to make the various flavors share more code, and make this easier?...)