tf_privacy.get_privacy_spent

Computes delta (or eps) for given eps (or delta) from RDP values.

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.

A tuple of epsilon, delta, and the optimal order.

ValueError If target_eps and target_delta are messed up.