Commit 931ce78
Consolidate low-level DP primitives into dpsynth.local_mode.primitives
- Merges _quantiles.py into primitives.py, establishing primitives.py as the
singular home for low-level DP building blocks in dpsynth.
- Extracts a general-purpose exponential_mechanism primitive which the
histogram median algorithm now calls.
- Deletes the obsolete DP-SIPS partition selection implementation and tests.
- Updates the module header to document that all primitives expect
pre-computed aggregates (counts) rather than computing aggregations
themselves, placing caller responsibility on satisfying privacy assumptions
(such as each user contributing at most one record to one bucket).
- Updates initialization and tests to import from primitives.py and deletes
_quantiles.py and _quantiles_test.py.
PiperOrigin-RevId: 9767949041 parent 900fc4f commit 931ce78
7 files changed
Lines changed: 371 additions & 536 deletions
File tree
- docs
- dpsynth/local_mode
- tests/local_mode
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
215 | | - | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
0 commit comments