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.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for preprocessutils-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da6155687f6abed170f4d70171eafac3a737ad904e7b0ac38d8304529847ef13 |
|
MD5 | abb9a4bc8c38b06c67cf756ad73607f3 |
|
BLAKE2b-256 | cc09054995dc3b9f08213ab2382a926717ca7f6b17a5bd64fe2733113d4a4c72 |