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.0265s | 1.1773s | 44.38x Faster |
| Information Value | 2.3131 | 2.3190s | 99.74% Fidelity | |
| 10,000,000 | Execution Time | 0.2523s | 16.5100s | 65.44x Faster |
| Information Value | 2.3091 | 2.3177s | 99.63% Fidelity |
Reproducibility: You can reproduce these results by running the script.
Metadata
Release files for fastbinning 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastbinning-0.0.3.tar.gz | 248.6 kB | Without provenance | Details for fastbinning-0.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastbinning-0.0.3-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for fastbinning-0.0.3-cp38-abi3-win_amd64.whl |
| fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ x86-64 | Details for fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl |
| fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl |
Total release size: 1.3 MB
Release files / fastbinning-0.0.3.tar.gz
| Download URL | fastbinning-0.0.3.tar.gz |
|---|---|
| Size | 248.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b09fb8ae952bacf6612798ad22c0a18b54d5e0b4e983350b129e294b8b75aa4
|
|
BLAKE2b-256 checksum How to use checksums |
28d45320369802df5dbc7b9d38ecc12934589f5b8473fe526b90c865f388ee04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.4
|
Release files / fastbinning-0.0.3-cp38-abi3-win_amd64.whl
| Download URL | fastbinning-0.0.3-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 254.0 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ad363aa9bd73e82d176c4ff139e7e12cbead8bad61a80c5ecb79374357c4aa96
|
|
BLAKE2b-256 checksum How to use checksums |
8d4c247bed3d80f681136d8e45a9e58c7ac097a955d88d147c96c0a5b9dcdf7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.4
|
Release files / fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl
| Download URL | fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 435.3 kB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f96db7c0082ffc9c6e4fb6461c97304384fb8b0ac2d1f410c2c5af3c962ebac5
|
|
BLAKE2b-256 checksum How to use checksums |
cd44c9578cd9beac83c10ff5ef81ec160721306144208cb58a7be5022646afe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.4
|
Release files / fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 372.0 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aebc6b509d24d52dcc9471ccf2798e913166a9cae22864a674eb1a649eaf8dd6
|
|
BLAKE2b-256 checksum How to use checksums |
437b3dde7c2427a828ec4abf061c6cdd203c5587aec9a28417171185c98ed67b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.4
|
Security for fastbinning 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.