Skip to content

Commit 0b92809

Browse files
authored
Bump Release to 1.0.2 (#581)
* Bump version to take use snssql 1.0.2 * Show proper message and abort if mbi not installed --------- Co-authored-by: Joshua <[email protected]>
1 parent 30f11da commit 0b92809

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

synth/HISTORY.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# SmartNoise Synth v1.0.2 Release Notes
2+
3+
* Switch to use SmartNoise SQL v1.0.2
4+
* Synthesizers now convert integer epsilon to float rather than crashing (thanks, @lo2aayy)
5+
16
# SmartNoise Synth v1.0.1 Release Notes
27

38
* Upgrade to OpenDP v0.7.0

synth/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

synth/docs/source/index.rst

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Preprocessor Hints
5151

5252
When inferring a preprocessor, the synthesizer first attempts to determine whether each column is categorical, ordinal, or continuous. To skip this step and tell the synthesizer how to treat each column, you can pass in the ``categorical_columns``, ``ordinal_columns``, and ``continuous_columns`` arguments to the ``fit()`` method. Additionally, if you know that columns can have missing values, you can specify ``nullable=True``.
5353

54+
.. note::
55+
56+
Before using the MST synthesizer, please install ``mbi`` by running ``pip install git+https://github.com/ryan112358/private-pgm.git``.
57+
5458
.. code-block:: python
5559
5660
from snsynth import Synthesizer

synth/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "smartnoise-synth"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "Differentially Private Synthetic Data"
55
authors = ["SmartNoise Team <[email protected]>"]
66
license = "MIT"
@@ -15,7 +15,7 @@ opendp = "^0.7.0"
1515
opacus = "^0.14.0"
1616
torch = "<2.0.0"
1717
pac-synth = "^0.0.8"
18-
smartnoise-sql = "^1.0.1"
18+
smartnoise-sql = "^1.0.2"
1919
Faker = "^15.0.0"
2020

2121
[tool.poetry.dev-dependencies]

synth/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup_kwargs = {
2727
'name': 'smartnoise-synth',
28-
'version': '1.0.1',
28+
'version': '1.0.2',
2929
'description': 'Differentially Private Synthetic Data',
3030
'long_description': '[![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/)\n\n<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>\n\n# SmartNoise Synthesizers\n\nDifferentially private synthesizers for tabular data. Package includes:\n* MWEM\n* MST\n* QUAIL\n* DP-CTGAN\n* PATE-CTGAN\n* PATE-GAN\n* AIM\n\n## Installation\n\n```\npip install smartnoise-synth\n```\n\n## Using\n\nPlease see the [SmartNoise synthesizers documentation](https://docs.smartnoise.org/synth/index.html) for usage examples.\n\n## Note on Inputs\n\nMWEM and MST require columns to be categorical. If you have columns with continuous values, you should discretize them before fitting. Take care to discretize in a way that does not reveal information about the distribution of the data.\n\n## Communication\n\n- You are encouraged to join us on [GitHub Discussions](https://github.com/opendp/opendp/discussions/categories/smartnoise)\n- Please use [GitHub Issues](https://github.com/opendp/smartnoise-sdk/issues) for bug reports and feature requests.\n- For other requests, including security issues, please contact us at [[email protected]](mailto:[email protected]).\n\n## Releases and Contributing\n\nPlease let us know if you encounter a bug by [creating an issue](https://github.com/opendp/smartnoise-sdk/issues).\n\nWe appreciate all contributions. Please review the [contributors guide](../contributing.rst). We welcome pull requests with bug-fixes without prior discussion.\n\nIf you plan to contribute new features, utility functions or extensions to this system, please first open an issue and discuss the feature with us.\n',
3131
'author': 'SmartNoise Team',

synth/snsynth/mst/mst.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from mbi import FactoredInference, Dataset, Domain
66
except ImportError:
77
print("Please install mbi with:\n pip install git+https://github.com/ryan112358/private-pgm.git")
8-
8+
raise ImportError
99
from scipy import sparse
1010
from disjoint_set import DisjointSet
1111
import networkx as nx

0 commit comments

Comments
 (0)