Open
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
miracvbasaran
approved these changes
Feb 25, 2022
| "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", |
Collaborator
There was a problem hiding this comment.
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." |
Collaborator
There was a problem hiding this comment.
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", |
Collaborator
There was a problem hiding this comment.
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", |
Collaborator
There was a problem hiding this comment.
nit: Count of participants per country (also on the non-DP graph above)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The colab includes the example that we often use in presentations. We count participants aggregated by the country of origin.