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

AttributeError: module 'tensorflow_privacy.privacy.analysis.compute_dp_sgd_privacy' has no attribute 'compute_dp_sgd_privacy' #473

Open
ripankundu opened this issue May 11, 2023 · 2 comments

Comments

@ripankundu
Copy link

Hi,
I am trying to measure the differential privacy guarantee by using the ".compute_dp_sgd_privacy". However, itt show the following error. I installed the package as well. But don't know why that is happen. Could anyone help to solve this problem.


AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 compute_dp_sgd_privacy.compute_dp_sgd_privacy(n=train_data.shape[0],
2 batch_size=batch_size,
3 noise_multiplier=noise_multiplier,
4 epochs=epochs,
5 delta=1e-5)

AttributeError: module 'tensorflow_privacy.privacy.analysis.compute_dp_sgd_privacy' has no attribute 'compute_dp_sgd_privacy'

@galenmandrew
Copy link
Collaborator

The package 'compute_dp_sgd_privacy' is a binary, meant to be called from the command line. In the package 'compute_dp_sgd_privacy_lib' there is a function 'compute_dp_sgd_privacy', but it is deprecated.

@ripankundu
Copy link
Author

@galenmandrew thank you for your response. Then how can I call this 'compute_dp_sgd_privacy'. Should I need to update the library or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants