Skip to main content

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). 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysyn_data-0.3.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysyn_data-0.3.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pysyn_data-0.3.1.tar.gz.

File metadata

  • Download URL: pysyn_data-0.3.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pysyn_data-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0b97c12dbca0e779f8193ef7e4e693c1054948b2f3b76b744401a7aab049f9d2
MD5 3644e23ada4c07be621d7ca6e32009c8
BLAKE2b-256 7fb958e161f89de0c1c080a7c96ce714a803b762967fbfe0e5de62e660106fea

See more details on using hashes here.

File details

Details for the file pysyn_data-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pysyn_data-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pysyn_data-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6ad0dad7fa853e2be43382f3308ae1a96f6c962ce788a9810b3a60e7d26812a
MD5 c6921c403c35694f27a53b1ccb338570
BLAKE2b-256 ba521258ba4d321aab72d808128b770f4b30f38808e259ba4768b2906a295dcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page