No project description provided
Project description
preprocessutils
This packages has data processing tools which can be used to make developer work easier
Installation
pip install preprocessutils
Usage
from preprocessutils import fix_imbalance
OVER-SAMPLE
balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, oversample=True)
OVER-SAMPLE SMOTE
balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, smote=True)
UNDER-SAMPLE
balanced_dataframe = fix_imbalance(data=df, target=target, threshold=10.0, oversample=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
preprocessutils-1.0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for preprocessutils-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9083b9d62f4a52f6348b83d336a1815ed23c51e0e82300fd7e6c32497d557cf7 |
|
MD5 | f106957d2b9a111c8a1dfd527682d472 |
|
BLAKE2b-256 | 00e1adc49704c676be7b37290417f1302accde7b2d65a9628e532e8849f247d0 |