balens
A universal Python toolkit for detecting and fixing data imbalance with support for SMOTE, ADASYN, class weighting, intelligent binning, and auto export. Ideal for ML pipelines, AutoML, and data science workflows.
Features
- Automatic imbalance detection
- Smart binning for regression targets
- Resampling (SMOTE, ADASYN, etc.)
- Class weights computation
- Export balanced datasets and reports
- CLI and Python SDK
Installation
pip install .
CLI Usage
balens fix --file data.csv --target Outcome --method smote --auto-bin --export
Python SDK Usage
from balens import auto_balance
X_res, y_res = auto_balance(df, target="Outcome", method="smote")
Metadata
Release files for balens 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| balens-0.0.2.tar.gz | 50.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| balens-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.3 kB
Release files / balens-0.0.2.tar.gz
| Download URL | balens-0.0.2.tar.gz |
|---|---|
| Size | 50.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc43e117aff65f898830eee3395a2ed7ee28039f6ee13b9a16891347a9603fe4
|
|
BLAKE2b-256 checksum How to use checksums |
1d97a5512dc0e932a8531f7c7fbc8a3150514111fad5076b5325eff8d46b156a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / balens-0.0.2-py3-none-any.whl
| Download URL | balens-0.0.2-py3-none-any.whl |
|---|---|
| Size | 53.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
586ec2a6ea35b97a638e0f7f7878472a99439451bd7a1dbf9a7bce29c50a1b6e
|
|
BLAKE2b-256 checksum How to use checksums |
7f985d92efabd98950e7a7f549f5db409e43592fb803b6cb94767a61f253c351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|