IAccountant¶
- class opacus.accountants.accountant.IAccountant[source]¶
- abstract get_epsilon(delta, *args, **kwargs)[source]¶
Return privacy budget (epsilon) expended so far.
- get_optimizer_hook_fn(sample_rate)[source]¶
Returns a callback function which can be used to attach to DPOptimizer :type sample_rate:
float
:param sample_rate: Expected sampling rate used for accounting- Return type:
Callable
[[DPOptimizer
],None
]
- load_state_dict(state_dict)[source]¶
Validates the supplied state_dict and populates the current Privacy Accountant’s state dict.