Skip to main content

A high-performance binning library specifically designed for Credit Risk Modeling and Scorecard Development.

Project description

release License

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastbinning-0.0.3.tar.gz (248.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastbinning-0.0.3-cp38-abi3-win_amd64.whl (254.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl (435.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl (372.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file fastbinning-0.0.3.tar.gz.

File metadata

  • Download URL: fastbinning-0.0.3.tar.gz
  • Upload date:
  • Size: 248.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for fastbinning-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9b09fb8ae952bacf6612798ad22c0a18b54d5e0b4e983350b129e294b8b75aa4
MD5 7e4ba912ce5512d5c229ec344f6957d6
BLAKE2b-256 28d45320369802df5dbc7b9d38ecc12934589f5b8473fe526b90c865f388ee04

See more details on using hashes here.

File details

Details for the file fastbinning-0.0.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for fastbinning-0.0.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad363aa9bd73e82d176c4ff139e7e12cbead8bad61a80c5ecb79374357c4aa96
MD5 0699102f127708f7f7060a120f49c31d
BLAKE2b-256 8d4c247bed3d80f681136d8e45a9e58c7ac097a955d88d147c96c0a5b9dcdf7a

See more details on using hashes here.

File details

Details for the file fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastbinning-0.0.3-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f96db7c0082ffc9c6e4fb6461c97304384fb8b0ac2d1f410c2c5af3c962ebac5
MD5 869751c4d662a26598a22a8203d544bc
BLAKE2b-256 cd44c9578cd9beac83c10ff5ef81ec160721306144208cb58a7be5022646afe8

See more details on using hashes here.

File details

Details for the file fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fastbinning-0.0.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aebc6b509d24d52dcc9471ccf2798e913166a9cae22864a674eb1a649eaf8dd6
MD5 ab30af75f27649aff847bfb96171356c
BLAKE2b-256 437b3dde7c2427a828ec4abf061c6cdd203c5587aec9a28417171185c98ed67b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page