Skip to content

Define DPMechanism ABC and wrap local_mode primitives#16

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/931374092
Jun 15, 2026
Merged

Define DPMechanism ABC and wrap local_mode primitives#16
copybara-service[bot] merged 1 commit into
mainfrom
cl/931374092

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 12, 2026

Copy link
Copy Markdown

Define DPMechanism ABC and wrap local_mode primitives

Introduces a DPMechanism abstract base class with calibrate,
dp_event, and __call__(rng, data) methods. Each mechanism is
parameterized by its natural privacy parameter. Wraps all local mode
primitives and initializers as DPMechanism subclasses.

@copybara-service copybara-service Bot changed the title Define DPMechanism ABC and refactor dpsynth mechanisms to use it Define DPMechanism ABC and wrap local_mode primitives Jun 12, 2026
Introduces a `DPMechanism` abstract base class with `calibrate`,
`dp_event`, and `__call__(rng, data)` methods. Each mechanism is
parameterized by its natural privacy parameter. Wraps local mode
primitives and initializers as DPMechanism subclasses.

PiperOrigin-RevId: 932610293
@copybara-service
copybara-service Bot merged commit 7de6c37 into main Jun 15, 2026
@copybara-service
copybara-service Bot deleted the cl/931374092 branch June 15, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants