imbalanced-calibrate - Analytical Calibration for Imbalanced Learning
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-learnresampling 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!
Metadata
Release files for imbalanced-calibrate 0.1.0
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 | |
|---|---|---|---|---|
| imbalanced_calibrate-0.1.0.tar.gz | 222.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imbalanced_calibrate-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 239.1 kB
Release files / imbalanced_calibrate-0.1.0.tar.gz
| Download URL | imbalanced_calibrate-0.1.0.tar.gz |
|---|---|
| Size | 222.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d008d624c8c7f7d9439311917b18a93e4add007e96cbd5c037f2b2d5305f720
|
|
BLAKE2b-256 checksum How to use checksums |
b990e811d8058303a4cde3ec19190f7b2b41c26628b5f5f819d0cfd72827041a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logRelease files / imbalanced_calibrate-0.1.0-py3-none-any.whl
| Download URL | imbalanced_calibrate-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2cf244ff31733cb9021c382ead929225afd1a77d5967b460542ed8c6ecbb2b4
|
|
BLAKE2b-256 checksum How to use checksums |
0ff93682fa6f43fad8d9d93496eaa89afc5658a19eb7f8079d0e2bbdd31fd744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logSecurity for imbalanced-calibrate 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for imbalanced_calibrate-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logA 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.