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.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for preprocessutils-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a86752904c626f5f2db5b9f079d8d55b92c2597c1c600e8e432718a012ba941 |
|
MD5 | 252a100c888e034b9b3945b8ebb24eb6 |
|
BLAKE2b-256 | 7a9316145348f12b65d1606ae4b1c419de222d62fec01a84050b858770b81170 |