Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre_thresholding to Beam PrivatePCollection API #514

Merged
merged 4 commits into from
May 17, 2024

Conversation

dvadym
Copy link
Collaborator

@dvadym dvadym commented May 16, 2024

No description provided.

@dvadym dvadym changed the title Add pre_thresholding to PrivatePCollection API Add pre_thresholding to Beam PrivatePCollection API May 16, 2024
@@ -32,6 +32,8 @@
FLAGS = flags.FLAGS
flags.DEFINE_string('input_file', None, 'The file with the movie view data')
flags.DEFINE_string('output_file', None, 'Output file')
flags.DEFINE_integer('pre_threshold', None,
'Pre threshold which is used in the DP aggregation')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it might be worth mentioning to which aggregations pre-threshold is currently applied.

# The value we're aggregating: we're summing up ratings
value_extractor=lambda mv: mv.rating)
if FLAGS.pre_threshold:
params.pre_threshold = FLAGS.pre_threshold
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have a preference for defining it at the same level as the other parameters rather than as a flag, because it's not very clear why we specify parameters in different places.

@dvadym dvadym merged commit 9249782 into OpenMined:main May 17, 2024
6 of 14 checks passed
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.

2 participants