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.

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.tar.gz (6.2 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-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysyn_data-0.3.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

Hashes for pysyn_data-0.3.tar.gz
Algorithm Hash digest
SHA256 d7decea8c879d05108fcefe63ec3103642cbf7ddc515e5d6b2ce574fc5244b12
MD5 2c195c97019e8ceb47ab69783de2f010
BLAKE2b-256 cff60942409029aac6da61458faecb3cac3ab8fd482b24fd4f5ec6fa5b7faf38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysyn_data-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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-py3-none-any.whl
Algorithm Hash digest
SHA256 92826772e5906b236b36b9218f9f34cc2bee4ed4fdd9f13b88651e510844fa9f
MD5 2384926fd70a141595c84054d5604e7e
BLAKE2b-256 17b9ad2a4d00dbb473b95db2eb42779bfa6ba546a0843a61155f834894fff80a

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