CTGAN-ENN : Tabular GAN-based Hybrid sampling method
Project description
CTGAN-ENN
CTGAN-ENN : Tabular GAN-based Hybrid sampling method.
- A sampling method that combine CTGAN (Conditional Tabular GAN) and ENN(Edited Nearest Neighboor)
- CTGAN is a powerfull oversampling method based on GAN for tabular data
- ENN is an efficient undersampling method to remove overlapped data
Installation
Install CTGAN-ENN using pip:
pip install ctganenn
Usage
Variables
- minClass: the minority class in the dataset (dataframe).
- majClass: the majority class in the dataset (dataframe).
- genData: how much data that you want generate from minorty class.
- targetLabel: what is your target label name in dataset.
Example Usage
from ctganenn import CTGANENN
use the CTGANENN function with 4 variables
CTGANENN(minClass,majClass,genData,targetLabel)
Output
the output of method are X and y :
- X : all features of your dataset
- y : target label of your dataset
Classification process
you can process the X and y variable to the next step for classification stage. For example using Decision Tree Classifier:
model = tree.DecisionTreeClassifier()
classification = model.fit(X, y)
Limitation
CTGAN-ENN on this version only works for binary classification
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
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 ctganenn-1.0.7.tar.gz.
File metadata
- Download URL: ctganenn-1.0.7.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c307db5f0ab90fae9a58e8491b997ab4e20a11101067cd0865e67d98407107
|
|
| MD5 |
71d57468167ac47859ccc15cf1f9526a
|
|
| BLAKE2b-256 |
f1c1cb4155da1ab164a9d2cd51cc7e973e18e5924b2797d9dab626fcfb320379
|
File details
Details for the file ctganenn-1.0.7-py3-none-any.whl.
File metadata
- Download URL: ctganenn-1.0.7-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e65f0e572afaac7dba67690873b0f79d91293b5aed7b1f26117c8c07b139fc6f
|
|
| MD5 |
951258908788de780416f3ae1e457374
|
|
| BLAKE2b-256 |
c514ba66b3c3a64d2beae63f157e71a06fa8ad9171c8a32e25b27cb5168ca91b
|