Optimal binning: mathematical programming formulation

Guillermo Navas-Palencia
1/22/2020
cs.LGmath.OCstat.ML

Official code: guillermo-navas-palencia/optbinning (538 stars, Python, Apache-2.0, last commit 2026-02-14).

Abstract

The optimal binning is the optimal discretization of a variable into bins given a discrete or continuous numeric target. We present a rigorous and extensible mathematical programming formulation for solving the optimal binning problem for a binary, continuous and multi-class target type, incorporating constraints not previously addressed.

Show full abstract

For all three target types, we introduce a convex mixed-integer programming formulation. Several algorithmic enhancements, such as automatic determination of the most suitable monotonic trend via a Machine-Learning-based classifier and implementation aspects are thoughtfully discussed. The new mathematical programming formulations are carefully implemented in the open-source python library OptBinning.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Optimal binning: monotonic binning with constraints. Support batch & stream optimal binning. Scorecard modelling and counterfactual explanations.

538121PythonDec 31, 20199 months agoApache-2.0
batch-processingbinningcounterfactual-explanationscredit-scoringmdlp+7 more

Similar Papers

Cite this paper

@article{navaspalencia2020optimal,
  title  = {Optimal binning: mathematical programming formulation},
  author = {Guillermo Navas-Palencia},
  year   = {2020},
  eprint = {2001.08025},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.08025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.08025.svg)](https://codeofpaper.com/paper/2001.08025)

Discussion