Skip to main content

imbalanced-calibrate - Analytical Calibration for Imbalanced Learning

tests codecov doc

This package provides sklearn-compatible calibration methods which correct model output for the bias induced by certain imbalanced learning techniques. It supports class weighting in sklearn binary classifiers (including XGBoost and LightGBM), and resampling methods from the imbalanced-learn package.

Documentation

Installation instructions, usage examples and mathematical justification can be found in the documentation.

Prerequisites

imbalanced-calibrate requires the following dependencies:

  • Python (>=3.10)
  • NumPy (>=2.0.2)
  • Scikit-learn (>=1.6.0)

Additionally, imbalanced-calibrate requires the following optional dependencies:

  • Imbalanced-learn (>=0.14.2), for calibration after using imbalanced-learn resampling methods.

Install

imbalanced-calibrate is currently available on the PyPI repository and you can install it via pip:

pip install imbalanced-calibrate

Or with uv:

uv add imbalanced-calibrate

The optional dependencies for resampling methods can be installed using pip install imbalanced-calibrate[resampling] or uv add "imbalanced-calibrate[resampling]".

Contribution

You can contribute to this package through a Pull Request, subject to appropriate unit testing and review. If you have any feature requests or suggestions, or encounter any errors or unexpected behaviour, please raise them either in issues or discussions. If you use this package in your work, please do let me know!

Download files

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

Source Distribution

imbalanced_calibrate-0.1.0.tar.gz (222.5 kB view details)

Uploaded Source

Built Distribution

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

imbalanced_calibrate-0.1.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file imbalanced_calibrate-0.1.0.tar.gz.

File metadata

  • Download URL: imbalanced_calibrate-0.1.0.tar.gz
  • Upload date:
  • Size: 222.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for imbalanced_calibrate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d008d624c8c7f7d9439311917b18a93e4add007e96cbd5c037f2b2d5305f720
MD5 35340f7716358a0cf43362158b13861b
BLAKE2b-256 b990e811d8058303a4cde3ec19190f7b2b41c26628b5f5f819d0cfd72827041a

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbalanced_calibrate-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on jules-collard/imbalanced-calibrate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imbalanced_calibrate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for imbalanced_calibrate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cf244ff31733cb9021c382ead929225afd1a77d5967b460542ed8c6ecbb2b4
MD5 15d3802edfc61d9f236b56d1d9881fc0
BLAKE2b-256 0ff93682fa6f43fad8d9d93496eaa89afc5658a19eb7f8079d0e2bbdd31fd744

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbalanced_calibrate-0.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on jules-collard/imbalanced-calibrate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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