Skip to content

Commit

Permalink
fixing naming convention and its use in GaussianSVT
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiangw committed Nov 3, 2023
1 parent 2a2032e commit 12390bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autodp/dp_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion autodp/mechanism_zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
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
Expand Down

0 comments on commit 12390bd

Please sign in to comment.