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 conference colab #248

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

monsieurmuffin
Copy link
Collaborator

The colab includes the example that we often use in presentations. We count participants aggregated by the country of origin.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

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",
Copy link
Contributor

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."
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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)

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