Skip to main content

Synthetic DataGen is a powerful online library designed to generate synthetic data sets for various use cases. It leverages advanced algorithms and customizable parameters to create realistic data that closely mimics real-world data while ensuring privacy and security.

Project description

Synthetic: A Python Library for Synthetic Data Generation

Synthetic is a Python library designed to facilitate the generation of synthetic datasets for machine learning and artificial intelligence applications. It provides functions to create synthetic dataframes with various features, including numerical and categorical variables, and offers utilities for visualization and data augmentation. With Synthetic, users can quickly generate synthetic datasets tailored to their specific needs, whether for model training, testing, or exploration.

Features

  • Supervised Data Generation: Generate synthetic datasets with labeled data for supervised learning tasks.
  • Numerical and Categorical Features: Create synthetic dataframes with both numerical and categorical features.
  • Visualization Tools: Visualize correlations and distributions of features within the synthetic datasets.
  • Data Augmentation: Apply techniques such as SMOTE (Synthetic Minority Over-sampling Technique) to address class imbalance in the datasets.

Installation

You can install Synthetic using pip:

pip install synthetic

Usage

1. Generating Synthetic Dataframes

import synthetic.generate as synthetic

# Generate a supervised numerical dataframe
numerical_df = synthetic.generate_supervised_numerical_dataframe(num_samples=1000, num_features=5)

# Generate a supervised dataframe with mixed numerical and categorical features
mixed_df = synthetic.generate_supervised_mixed_dataframe(num_samples=1000, num_numerical_features=3, num_categorical_features=2)

# Display the first few rows of the generated dataframes
print("Numerical DataFrame:")
print(numerical_df.head())

print("\nMixed DataFrame:")
print(mixed_df.head())

2. Visualization

import synthetic

# Plot correlation heatmap
synthetic.plot_correlation(mixed_df)

# Plot distribution of features
synthetic.plot_distribution(mixed_df)

3. Data Augmentation

import synthetic

# Apply SMOTE for data augmentation
augmented_df = synthetic.apply_smote(mixed_df, target_column='label')

# Display the first few rows of the augmented dataframe
print("Augmented DataFrame:")
print(augmented_df.head())

Examples

For more examples and detailed usage instructions, please refer to the Examples directory in the repository.

Contributing

We welcome contributions from the community. If you encounter any issues, have suggestions for improvements, or would like to contribute code, please feel free to open an issue or pull request on our GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

dpone_datagenie-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

dpone_datagenie-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file dpone_datagenie-0.1.1.tar.gz.

File metadata

  • Download URL: dpone_datagenie-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/10

File hashes

Hashes for dpone_datagenie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d6da46eebf3e71d9aeb3b8f41d09647a8aff49fd1ac7721dc1ccf1a6b305e9f
MD5 e233fce8d1bbb305664be98ce79d457b
BLAKE2b-256 86f675d59b0646747c4fbdd76c79543d673de095fe8409806e57275449710b9d

See more details on using hashes here.

File details

Details for the file dpone_datagenie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dpone_datagenie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/10

File hashes

Hashes for dpone_datagenie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac547529a43521de66a09cac5699da886be20b6c2d15577a3c728712b8442dc
MD5 c16ab8181186b7c5afbced64a48aad51
BLAKE2b-256 41279f5c36b77bf69824c043f6b2233552bceed7af5f2c9d3ebdea4e9927cbb9

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