opacus icon indicating copy to clipboard operation
opacus copied to clipboard

ZeroDivisionError when alpha = 1.0

Open Kritikalcoder opened this issue 6 years ago • 1 comments

In _compute_rdp(q, sigma, alpha), the value of

return _compute_log_a(q, sigma, alpha) / (alpha - 1)

becomes zero when alpha = 1.0, a valid value for alpha order.

Kritikalcoder avatar Aug 31 '20 13:08 Kritikalcoder

Hi, in our accountant RDP the relaxation is (ε + (log(1 / delta) / alpha - 1), δ) hence the alpha orders has to be > 1. If alpha is 1 then we don't have a corresponding (ε, δ) value

JohnlNguyen avatar Aug 31 '20 17:08 JohnlNguyen