Skip to content

Commit

Permalink
Fix classification_privacy.ipynb
Browse files Browse the repository at this point in the history
Fixed by calling `compute_dp_sgd_privacy_statement`.
  • Loading branch information
vertexcite committed Nov 2, 2023
1 parent 39c8a8c commit 052cefb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions g3doc/tutorials/classification_privacy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,12 @@
},
"outputs": [],
"source": [
"compute_dp_sgd_privacy.compute_dp_sgd_privacy(n=train_data.shape[0],\n",
"print(compute_dp_sgd_privacy.compute_dp_sgd_privacy_statement(\n",
" number_of_examples=train_data.shape[0],\n",
" batch_size=batch_size,\n",
" noise_multiplier=noise_multiplier,\n",
" epochs=epochs,\n",
" delta=1e-5)"
" num_epochs=epochs,\n",
" delta=1e-5))"
]
},
{
Expand All @@ -430,7 +431,7 @@
"id": "c-KyttEWFRDc"
},
"source": [
"The tool reports that for the hyperparameters chosen above, the trained model has an $\\epsilon$ value of 1.18."
"The tool reports that for the hyperparameters chosen above, the trained model has an $\\epsilon$ value of 3.426."
]
},
{
Expand Down

0 comments on commit 052cefb

Please sign in to comment.