PrivacyAccountant¶
- class PrivacyAccountant(*args, **kwargs)[소스]¶
기반 클래스:
ProtocolProtocol implemented by privacy-accounting backends.
메소드
compose(event[, count])Compose one or more identical privacy events.
get_delta(epsilon)Return cumulative delta at the supplied epsilon.
get_epsilon(delta)Return cumulative epsilon at the supplied delta.
get_privacy_spent([delta])Return cumulative privacy expenditure.
load_state_dict(state)Restore serializable accountant state.
Return serializable accountant state.
would_exceed(event[, max_epsilon, count])Return whether composing an event would exceed an epsilon limit.
속성
Return the privacy configuration.
Return the number of composed private releases.
- compose(event: GaussianPrivacyEvent, count: int = 1) None[소스]¶
Compose one or more identical privacy events.
- property config: PrivacyConfig¶
Return the privacy configuration.
- get_privacy_spent(delta: float | None = None) PrivacySpent[소스]¶
Return cumulative privacy expenditure.
- property num_releases: int¶
Return the number of composed private releases.
- would_exceed(event: GaussianPrivacyEvent, max_epsilon: float | None = None, count: int = 1) bool[소스]¶
Return whether composing an event would exceed an epsilon limit.