-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor privacy_math to do randomized response
This CL does a few things: 1. Moves most randomized response logic out of the storage delegate 2. Moves RandomizedResponseData into privacy_math 3. Computes channel capacity at the same time as doing randomized response. This causes a bit of extra work in the case where channel capacity is exceeded, but it simplifies the interface and may end up being needed down the line anyway in case we stop unconditionally failing when channel capacity is exceeded. 4. Augments the k-combination helper function to work at extreme values which required some variables to migrate `int` to `int64_t`. Note that the storage delegate still needs to know how to compute the randomized response rate, as it is needed for computing on-the-fly `randomized_trigger_rate` when that information is not stored in the db. This path can likely be removed when we are confident all sources in the db properly store this. A follow-up CL will perform randomized response on inputs configured using TriggerSpecs. Change-Id: I865cf5a14e5211af45b043a62b5f3d94e31b0380 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4982908 Commit-Queue: Charlie Harrison <csharrison@chromium.org> Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216415}
- Loading branch information
1 parent
65c207d
commit eb8169b
Showing
10 changed files
with
437 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.