From 12390bd85d201d1e71868559e48f56161274923f Mon Sep 17 00:00:00 2001 From: Yu-Xiang Wang Date: Fri, 3 Nov 2023 14:57:45 -0700 Subject: [PATCH] fixing naming convention and its use in GaussianSVT --- autodp/dp_bank.py | 2 +- autodp/mechanism_zoo.py | 2 +- setup.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autodp/dp_bank.py b/autodp/dp_bank.py index 4fbcbaf..d4a1f1e 100644 --- a/autodp/dp_bank.py +++ b/autodp/dp_bank.py @@ -85,7 +85,7 @@ def fun(x): else: raise RuntimeError(f"Failed to find epsilon: {results.flag}") -def eps_generalized_gaussian(x, sigma, delta,k, c, c_tilde): +def get_eps_gaussian_svt(x, sigma, delta, k, c, c_tilde): """ submodule for generalized SVT with Gaussian noise we want to partition c into [c/c'] parts, each part using (k choose c') diff --git a/autodp/mechanism_zoo.py b/autodp/mechanism_zoo.py index f0f1725..e03a61f 100644 --- a/autodp/mechanism_zoo.py +++ b/autodp/mechanism_zoo.py @@ -431,7 +431,7 @@ def __init__(self, params=None,approxDP_off=False, name='StageWiseMechanism'): self.delta0 = 0 if not approxDP_off: # Direct implementation of approxDP - new_approxdp = lambda x: dp_bank.get_generalized_gaussian(params, x) + new_approxdp = lambda x: dp_bank.get_gaussian_svt(params, x) self.propagate_updates(new_approxdp, 'approxDP_func') diff --git a/setup.py b/setup.py index a264b39..83d35b1 100644 --- a/setup.py +++ b/setup.py @@ -18,14 +18,14 @@ def _parse_requirements(path): setup( name='autodp', - version='0.2.1b', + version='0.2.3', description='Automating Differential Privacy Computation', license="Apache", long_description="The package helps researchers and developers to correctly use advanced methods in differential privacy and obtain provable DP guarantees. The core of the package is an analytical moments accountant that keeps track of Renyi Differential Privacy in analytical forms.", author='Yu-Xiang Wang', author_email='yuxiangw@cs.ucsb.edu', url='https://github.com/yuxiangw/autodp', - download_url = 'https://github.com/yuxiangw/autodp/archive/refs/tags/v0.2.1b.tar.gz', + download_url = 'https://github.com/yuxiangw/autodp/archive/refs/tags/v0.2.3.tar.gz', keywords = ['Differential Privacy','Moments Accountant','Renyi Differential Privacy'], packages=['autodp'], #same as name install_requires=[_parse_requirements('requirements.txt')], #external packages as dependencies