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!
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d008d624c8c7f7d9439311917b18a93e4add007e96cbd5c037f2b2d5305f720
|
|
| MD5 |
35340f7716358a0cf43362158b13861b
|
|
| BLAKE2b-256 |
b990e811d8058303a4cde3ec19190f7b2b41c26628b5f5f819d0cfd72827041a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbalanced_calibrate-0.1.0.tar.gz -
Subject digest:
3d008d624c8c7f7d9439311917b18a93e4add007e96cbd5c037f2b2d5305f720 - Sigstore transparency entry: 2730925121
- Sigstore integration time:
-
Permalink:
jules-collard/imbalanced-calibrate@8944490a81522eaf50f6ad42535ab46ef7c07109 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jules-collard
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@8944490a81522eaf50f6ad42535ab46ef7c07109 -
Trigger Event:
release
-
Statement type:
File details
Details for the file imbalanced_calibrate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imbalanced_calibrate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2cf244ff31733cb9021c382ead929225afd1a77d5967b460542ed8c6ecbb2b4
|
|
| MD5 |
15d3802edfc61d9f236b56d1d9881fc0
|
|
| BLAKE2b-256 |
0ff93682fa6f43fad8d9d93496eaa89afc5658a19eb7f8079d0e2bbdd31fd744
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbalanced_calibrate-0.1.0-py3-none-any.whl -
Subject digest:
b2cf244ff31733cb9021c382ead929225afd1a77d5967b460542ed8c6ecbb2b4 - Sigstore transparency entry: 2730925158
- Sigstore integration time:
-
Permalink:
jules-collard/imbalanced-calibrate@8944490a81522eaf50f6ad42535ab46ef7c07109 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jules-collard
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@8944490a81522eaf50f6ad42535ab46ef7c07109 -
Trigger Event:
release
-
Statement type: