Commit ef8ab2c
Refactor BandMFExecutionPlanConfig: separate calibration from config.
The main reasoning for this change was to make it easier to calibrate a mechanism to things other than epsilon/delta. From speaking with folks at TPDP, we probably want to support calibrating to GDP or TPR/FPR as well in the future. This change will make that feel less clunky.
An additional benefit of this change is that the dataclass becomes significantly simpler, with epsilon/delta being removed, accountant being removed, and things like partition type and neighboring relation being automatically inferred based on the other inputs. This should reduce cognitive load for the different classes/functions and make it easier to understand and configure a BandMF mechanism.
PiperOrigin-RevId: 9263934001 parent 7ad9c12 commit ef8ab2c
5 files changed
Lines changed: 158 additions & 191 deletions
File tree
- examples
- jax_privacy/experimental
- tests/experimental
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | 115 | | |
118 | | - | |
| 116 | + | |
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | | - | |
| 254 | + | |
257 | 255 | | |
258 | 256 | | |
259 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 45 | + | |
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
| |||
0 commit comments