Skip to main content

woebin

A python library powered by Rust to perform binning procedure based on WOE.

Installation

pip install woebin-python

NOTE: It works for Windows 11 only. If you want to use it for another platform, please, see below how to build it from source.

Simple example

from woebin import WoeBinningProc

wbp = WoeBinningProc()

# Process categorial binning
wbp.process(df['series'], df['target'], bins=5, is_numeric=False, smooth=1.0)  # series as integers, target as 0-1 or boolean

# Process numeric binning (values in series are considered as numeric)
wbp.process(df['series'], df['target'], bins=5, is_numeric=True, smooth=1.0)

# Final IV
print(wbp.get_iv_total())

# Information about found bins
bins_info = wbp.get_bins_info()
print(bins_info)

# Mapping value->WOE
woe_map = wbp.get_woe_map()
print(woe_map)

Build and install from source

  1. Make sure Rust nightly is installed (Installation: https://www.rust-lang.org/tools/install, turn on nightly mode: rustup default nightly).
  2. Clone the repository: git clone --depth=1 https://github.com/fomalhaut88/woebin.git
  3. Go to woebin directory: cd woebin
  4. Build the project: python setup.py sdist

After that the package can be installed with the command:

pip install path/to/woebin-python-<VERSION>.tar.gz

Metadata

Release files for woebin-python 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for woebin-python 0.1.9
File Size Uploaded Provenance
woebin-python-0.1.9.tar.gz 115.3 kB Without provenance Details

Release files / woebin-python-0.1.9.tar.gz

Download URL woebin-python-0.1.9.tar.gz
Size 115.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2360bf8ab8014e85ac38a69c62325a925b129a71ea5ca6e77fb2958395db8531
BLAKE2b-256 checksum
How to use checksums
dec7a81d43753df3ed289d5dee054c1e91530a8368350a0e391b25088c75a37a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for woebin-python 0.1.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page