Metadata-Version: 2.1
Name: smartnoise-synth
Version: 0.2.1
Summary: Differentially Private Synthetic Data
Home-page: https://smartnoise.org
License: MIT
Author: SmartNoise Team
Author-email: smartnoise@opendp.org
Requires-Python: >=3.7.1,<=3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: ctgan (==0.2.2.dev0)
Requires-Dist: numpy (>=1.21.2,<2.0.0)
Requires-Dist: opacus (==0.11.0)
Requires-Dist: torch (==1.7.1)
Project-URL: Repository, https://github.com/opendp/smartnoise-sdk
Description-Content-Type: text/markdown

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8-blue)](https://www.python.org/)

<a href="https://smartnoise.org"><img src="https://github.com/opendp/smartnoise-sdk/raw/main/images/SmartNoise/SVG/Logo%20Mark_grey.svg" align="left" height="65" vspace="8" hspace="18"></a>

## SmartNoise Synthesizers

Differentially private synthesizers for tabular data.  Package includes:
* MWEM
* QUAIL
* PATE-CTGAN
* DP-CTGAN
* PATE-GAN

## Installation

```
pip install smartnoise-synth
```

## Using

```python
import snsynth
import pandas as pd

synth = snsynth.MWEMSynthesizer(1.0)  # epsilon=1.0
fit = synth.fit(my_data)  # learn the distribution of the real data
sample = synth.sample(10) # synthesize 10 rows
```

## Communication

- You are encouraged to join us on [GitHub Discussions](https://github.com/opendp/opendp/discussions/categories/smartnoise)
- Please use [GitHub Issues](https://github.com/opendp/smartnoise-sdk/issues) for bug reports and feature requests.
- For other requests, including security issues, please contact us at [smartnoise@opendp.org](mailto:smartnoise@opendp.org).

## Releases and Contributing

Please let us know if you encounter a bug by [creating an issue](https://github.com/opendp/smartnoise-sdk/issues).

We appreciate all contributions. Please review the [contributors guide](../contributing.rst). We welcome pull requests with bug-fixes without prior discussion.

If you plan to contribute new features, utility functions or extensions to this system, please first open an issue and discuss the feature with us.
