This package is for generating synthetic data using 4 models i.e Conditional Genrative Adveserial Networks(CTGAN), Gaussian Mixture Model (GMM), Prinicipal Component Analysis (PCA) and Bayesian Network (BN). It also informs the user which model will work best based on the input data characterisitics.
Project description
pysyn-data Package
This package is for generating synthetic data using 4 models i.e Conditional Genrative Adveserial Networks(CTGAN), Gaussian Mixture Model (GMM), Prinicipal Component Analysis (PCA) and Bayesian Network (BN). It also informs the user which model will work best based on the input data characterisitics. This package was created in TAVLAB under guidance of Dr. Tavpritesh Sethi (Computational Biology Lab under Dr Tavpritesh Sethi at IIITD) for Clinical Data Synthesis Project. This is the link to the lab's official webpage.
Package Intallation
For installing the pysyn-data package the following command has to be run:
pip install pysyn-data
Functions Usage
generate_data:
import pysyn_data as psd
syn_data_list= psd.generate_data(df=data, discrete_cols=discrete_cols, models=['bn','ctgan','gmm','pca'],req_size=5000,target_class=target_class,do_PCA=False)
The above function generates synthetic data of size 5000 using the above 4 models i.e BN, CTGAN, GMM and PCA. It also takes input of discrete columns if there are any in the input dataset. User has the option of doing PCA before generating the required synthetic data
predict_best_models:
psd.predict_best_models(df=data,discrete_cols=discrete_cols)
This function shows user the best augmentation model which will work according to the input data. The used metrics are number of discrete columns to number of continuous columns ratio, number of features to number of samples ratio, number of samples and number of features individually.
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 pysyn_data-0.3.2.tar.gz.
File metadata
- Download URL: pysyn_data-0.3.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b0bd5062c635a1275d21795fe75da4178a0ddf1648a9cf081fa6192a2a17377
|
|
| MD5 |
6281c5e16e9dbfeee46a322bc4373b1e
|
|
| BLAKE2b-256 |
782163e6da5d2d5263643cf5cd95f8eeb00d2afeb7b68c9677b3d72230621701
|
File details
Details for the file pysyn_data-0.3.2-py3-none-any.whl.
File metadata
- Download URL: pysyn_data-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c19ca2d471e8e47b42797b4a6962df581f72b607dc5b1ea26e983c66b38dc8
|
|
| MD5 |
218d28db3de69b49c6dffabbcbee2cc0
|
|
| BLAKE2b-256 |
cd22fdec28e055bffecdd0a30f005b26e08aae17fd2c108483588119a60c3b75
|