A high-performance binning library specifically designed for Credit Risk Modeling and Scorecard Development.
Project description
A high-performance binning library specifically designed for Credit Risk Modeling and Scorecard Development.
Let's be honest: Binning is a pain.
In Credit Risk Modeling, binning with millions of rows often feels like a bottleneck. You need to ensure Monotonicity, handle Missing Values, and maximize IV—all while your script runs for minutes.
fastbinning was born to solve this. It delivers the near optimal mathematical precision of optimal binning at speeds you've never experienced before.
Why fastbinning?
- Monotonicity Guaranteed: No more manual tweaking. Automatically enforces a monotonic trend in Weight of Evidence (WoE) for numerical features.
- Built for the Impatient: Binning shouldn't be a coffee break. It processes 10M+ records in milliseconds.
- Near-Optimal: Achieves near-optimal IV fidelity compared to Mixed-Integer Linear Programming solvers.
Installation
Install using pip:
pip install fastbinning
Example
Please refer to the Examples provided for further clarification.
Benchmark
We sacrifice little of Information Value to achieve nearly two orders of magnitude speed improvement.
| Sample Size | Metric | fastbinning | optbinning | comparison |
|---|---|---|---|---|
| 1,000,000 | Execution Time | 0.0216s | 1.0197s | 47.14x Faster |
| Information Value | 2.3013 | 2.3190 | 99.24% Fidelity | |
| 10,000,000 | Execution Time | 0.1817s | 13.4070s | 73.79x Faster |
| Information Value | 2.2990 | 2.3177 | 99.19% Fidelity |
Reproducibility: You can reproduce these results by running the script.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastbinning-0.0.2.tar.gz.
File metadata
- Download URL: fastbinning-0.0.2.tar.gz
- Upload date:
- Size: 235.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0910c65a88cf7e93c10a07ef0525c123f98e475242a53636e80bd0d64276b035
|
|
| MD5 |
28d7ac6a93b1c1b5efd78191cd88d972
|
|
| BLAKE2b-256 |
1dcc5cd5ab3bed29c104158a7a581cfa8f669141fd28404ad47ce8758e41c624
|
File details
Details for the file fastbinning-0.0.2-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: fastbinning-0.0.2-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 235.3 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8562ac5c9f42f0a37aa029d63c85c8dc398328d8aa7cb8f6bdc9b36c91758fc4
|
|
| MD5 |
a9e52d95cb9fd40832d545082c2eed68
|
|
| BLAKE2b-256 |
b89ae2e23f929f7ef586b7360e6cc14252dabb9ddd92c2c847a1f4d2160e7136
|
File details
Details for the file fastbinning-0.0.2-cp38-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: fastbinning-0.0.2-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 415.7 kB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b1a96b290f848a107039e7d2458d3fc8d7a76974520bbe3e142619cd2e8478d
|
|
| MD5 |
fc990f26caad0f6e8c825360d413bd90
|
|
| BLAKE2b-256 |
647f497bba0c9da02b920beceaabdcdc74b68efcc3bbd49eccd5f5c01a224673
|
File details
Details for the file fastbinning-0.0.2-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: fastbinning-0.0.2-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 352.8 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23d24b7af68fc0f90129d5f917378dc73ef9004c5e68fae6986c417700e0fb6
|
|
| MD5 |
6c02e3d6ce198a67715ed9e66a541c30
|
|
| BLAKE2b-256 |
14903a168b37335277268d6cfebba06c14240cf86e31ec3ff8c950db356c7d3a
|