Computes delta (or eps) for given eps (or delta) from RDP values.
tf_privacy.get_privacy_spent(
orders, rdp, target_eps=None, target_delta=None
)
Args |
orders
|
An array (or a scalar) of RDP orders.
|
rdp
|
An array of RDP values. Must be of the same length as the orders list.
|
target_eps
|
If not None , the epsilon for which we compute the
corresponding delta.
|
target_delta
|
If not None , the delta for which we compute the
corresponding epsilon. Exactly one of target_eps and target_delta must
be None .
|
Returns |
A tuple of epsilon, delta, and the optimal order.
|
Raises |
ValueError
|
If target_eps and target_delta are messed up.
|