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
Metadata
Release files for ctganenn 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctganenn-1.0.7.tar.gz | 2.3 kB | Without provenance | Details for ctganenn-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctganenn-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for ctganenn-1.0.7-py3-none-any.whl |
Total release size: 5.2 kB
Release files / ctganenn-1.0.7.tar.gz
| Download URL | ctganenn-1.0.7.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95c307db5f0ab90fae9a58e8491b997ab4e20a11101067cd0865e67d98407107
|
|
BLAKE2b-256 checksum How to use checksums |
f1c1cb4155da1ab164a9d2cd51cc7e973e18e5924b2797d9dab626fcfb320379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / ctganenn-1.0.7-py3-none-any.whl
| Download URL | ctganenn-1.0.7-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e65f0e572afaac7dba67690873b0f79d91293b5aed7b1f26117c8c07b139fc6f
|
|
BLAKE2b-256 checksum How to use checksums |
c514ba66b3c3a64d2beae63f157e71a06fa8ad9171c8a32e25b27cb5168ca91b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Security for ctganenn 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.