Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The returned privacy budget will be incorrect" with DPGAN / DPCTGAN #569

Open
hharcolezi opened this issue Aug 3, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@hharcolezi
Copy link

hharcolezi commented Aug 3, 2023

My environment (Windows 11):
Python 3.8.17
ipykernel 6.19.2
ipython 8.12.0
numpy 1.24.4
opacus 0.14.0
opendp 0.7.0
pac-synth 0.0.8
smartnoise-sql 1.0.1
smartnoise-synth 1.0.1
torch 1.13.1

I installed smartnoise-synth 1.0.1 and I'm trying to run:
from snsynth.pytorch.nn import DPGAN
from snsynth.pytorch import PytorchDPSynthesizer
pums = pd.read_csv("PUMS.csv")
synth = PytorchDPSynthesizer(epsilon=3.0, gan=DPGAN())
synth.fit(pums, preprocessor_eps=1.0)
pums_synth = synth.sample(1000)

The error message:
...\lib\site-packages\opacus\privacy_engine.py:638: UserWarning: The sample rate will be defined from batch_size and sample_size.The returned privacy budget will be incorrect.

Is there a way to correct this? Or how can I circumvent this error?

Thanks in advance for your help and time.

@hharcolezi hharcolezi added the bug Something isn't working label Aug 3, 2023
@Shoeboxam Shoeboxam transferred this issue from opendp/opendp Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant