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

ZCdpBudget::new() should be fallible, error on epsilon=0 #1095

Open
divergentdave opened this issue Jul 12, 2024 · 0 comments
Open

ZCdpBudget::new() should be fallible, error on epsilon=0 #1095

divergentdave opened this issue Jul 12, 2024 · 0 comments

Comments

@divergentdave
Copy link
Contributor

Most DP mechanisms are only well-defined for $\varepsilon &gt; 0$. We disallow negative values by using Ratio<BigUint>, but we don't yet reject zero. Currently, trying to use an epsilon of zero results in a panic due to division by zero in create_distribution(). We should make the budget constructor fallible, and check for this.

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

No branches or pull requests

1 participant