Skip to main content

Synthetic Data Generation with optional Differential Privacy

Project description

Gretel Synthetics

gretel-synthetics workflows

Documentation Status

This code has been developed and tested on Python 3.7. Python 3.8 is currently unsupported. While not developed on Python 3.6, this code will run in Google Colab, which currently uses 3.6. If you wish to use Python 3.6, out side of Google Colab, you may install with the py36 extras: pip install gretel-synthetics[tf,py36], for example.

This package allows developers to quickly get immersed with synthetic data generation through the use of neural networks. The more complex pieces of working with libraries like Tensorflow and differential privacy are bundled into friendly Python classes and functions.

For example usage, please launch the example Jupyter Notebook and step through the config, train, and generation examples. Open in Colab

NOTE: The settings in our Jupyter Notebook examples are optimized to run on a GPU, which you can experiment with for free in Google Colaboratory. If you're running on a CPU, you might want to grab a cup of coffee, or lower max_lines and epochs to 5000 and 10, respectively.

Getting Started

By default, we do not install Tensorflow via pip as many developers and cloud services such as Google Colab are running customized versions for their hardware. If you wish to pip install Tensorflow along with gretel-synthetics, use the [tf] commands below instead.

pip install -U .                     # Do not install Tensorflow by default (assuming you have built a distro for your hardware)
pip install -U -e ".[tf]"            # Install a pinned version of Tensorflow"

or

pip install gretel-synthetics        # Do not install Tensorflow by default (assuming you have built a distro for your hardware)
pip install gretel-synthetics[tf]    # Install a pinned version of Tensorflow

then...

$ pip install jupyter
$ jupyter notebook

When the UI launches in your browser, navigate to examples/synthetic_records.ipynb and get generating!

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

gretel-synthetics-0.12.0.tar.gz (948.5 kB view details)

Uploaded Source

Built Distribution

gretel_synthetics-0.12.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file gretel-synthetics-0.12.0.tar.gz.

File metadata

  • Download URL: gretel-synthetics-0.12.0.tar.gz
  • Upload date:
  • Size: 948.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gretel-synthetics-0.12.0.tar.gz
Algorithm Hash digest
SHA256 e26440f87c01e96d67914873ff8cf6da145cde6c316686ef347722208feafde7
MD5 6e315336531818e2f42d2760db8e057c
BLAKE2b-256 fb263414ee52aa3ee6f38babb4908625ca95081df4ddbdb641e779f9aeef30c3

See more details on using hashes here.

File details

Details for the file gretel_synthetics-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: gretel_synthetics-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gretel_synthetics-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f210761471ac4b0a739477bb337b0ac4071e9fe0d38642cfbbae8b76a402da21
MD5 f01abb61ff2e4533df9e7fe91ec21909
BLAKE2b-256 9fb43400b1daee1de58e925e1f2a088af2018a4e6b4c3945f30bbba3d5cdf6bd

See more details on using hashes here.

Supported by

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