-
-
Notifications
You must be signed in to change notification settings - Fork 77
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 conference colab #248
base: main
Are you sure you want to change the base?
Add conference colab #248
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
"id": "e2SOjo8qiNnw" | ||
}, | ||
"source": [ | ||
"The goal of this Colab is to demonstrate how to compute the count of participants aggregated by country in a DP manner.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This is the first time we are mentioning DP, so it might make sense to not use and abbreviations, i.e. "in a differentially private (DP) manner."
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"This is a simple example that shows how to calculate anonymized statistics using PipelineDP. The input data is a simulated dataset of an imaginary conference participants including their origin coutries. We use PipelineDP to calculate anonymized count of participants aggregated by country." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: coutries
-> countries
"# metrics to compute.\n", | ||
"dp_result = dp_engine.aggregate(input, params, data_extractors)\n", | ||
"\n", | ||
"# Compute budget per each DP operation. \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: delete period at the end for consistency (or alternatively, put periods at the end of other comments.
"fig, ax = plt.subplots()\n", | ||
"rects1 = ax.bar(x - width/2, non_dp_count, width, label='non-DP')\n", | ||
"rects2 = ax.bar(x + width/2, dp_count, width, label='DP')\n", | ||
"ax.set_title('Count participants per country')\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Count of participants per country
(also on the non-DP graph above)
The colab includes the example that we often use in presentations. We count participants aggregated by the country of origin.