Skip to main content

Synthetic Data Generation for Tabular, Classification, and Time-Series Labels

This repository contains a Python-based framework for generating accurate and safe synthetic datasets for tabular, classification, and time-series labeling tasks. It is designed to help researchers, data scientists, and machine learning engineers create high-quality, realistic datasets for training and evaluating their models while ensuring privacy and compliance with data protection regulations.

Features

  1. Tabular Data Generation: Easily generate synthetic tabular datasets with customizable column types, distribution patterns, and correlations between variables.

  2. Classification Data Generation: Create datasets for binary or multi-class classification tasks, controlling class imbalance and feature importance.

  3. Time-Series Data Generation: Generate synthetic time-series datasets with user-defined seasonality, trend, and noise components.

  4. Data Privacy: Ensure data privacy by using differential privacy techniques and limiting the degree of similarity between the original and synthetic datasets.

  5. Flexible and Extensible: The framework is designed to be easily extended and adapted to a wide range of data generation tasks, with support for custom data generation modules and integration with other data generation tools.

Installation

Clone the repository and install the required dependencies:

git clone https://github.com/syntheticdataset/synthetic-dataset.git

cd synthetic-dataset

pip install -r requirements.txt

Usage

Refer to the provided examples and documentation for guidance on how to generate synthetic datasets for your specific use case.

from synthetic_data import TabularDataGenerator, ClassificationDataGenerator, TimeSeriesDataGenerator

# Tabular data generation

tabular_gen = TabularDataGenerator(num_rows=1000)

tabular_data = tabular_gen.generate()



# Classification data generation

classification_gen = ClassificationDataGenerator(num_samples=1000, num_classes=3)

classification_data, labels = classification_gen.generate()



# Time-series data generation

time_series_gen = TimeSeriesDataGenerator(num_samples=1000, seasonal_period=12)

time_series_data = time_series_gen.generate()

Contributing

Please read the CONTRIBUTING.md file for details on how to contribute to the project. We welcome pull requests, bug reports, and feature requests.

License

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

Metadata

Release files for synthetic-dataset 0.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synthetic-dataset 0.0.0.2
File Size Uploaded
synthetic-dataset-0.0.0.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for synthetic-dataset 0.0.0.2
File Interpreter ABI Platform
synthetic_dataset-0.0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / synthetic-dataset-0.0.0.2.tar.gz

Download URL synthetic-dataset-0.0.0.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
41b8ab040623c3b440fc518275a1260c82e1282c172d0603e044a4c910b3125d
BLAKE2b-256 checksum
How to use checksums
26ea2f021b6a2a16c960aece62899bfc33fc19fe2516d07d3ad88f6cfa4bbc27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release files / synthetic_dataset-0.0.0.2-py3-none-any.whl

Download URL synthetic_dataset-0.0.0.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea0bfa4cd8b0039e0b78c70e24e7e9fa053eabb7125ece98cb1851df587bfbc0
BLAKE2b-256 checksum
How to use checksums
2e324614b7ca4899ff2a5ab1bf39f04bb0344654d0dbba14ba72d16a124ff8fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page