Skip to content

Commit 052cefb

Browse files
committed
Fix classification_privacy.ipynb
Fixed by calling `compute_dp_sgd_privacy_statement`.
1 parent 39c8a8c commit 052cefb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

g3doc/tutorials/classification_privacy.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,12 @@
417417
},
418418
"outputs": [],
419419
"source": [
420-
"compute_dp_sgd_privacy.compute_dp_sgd_privacy(n=train_data.shape[0],\n",
420+
"print(compute_dp_sgd_privacy.compute_dp_sgd_privacy_statement(\n",
421+
" number_of_examples=train_data.shape[0],\n",
421422
" batch_size=batch_size,\n",
422423
" noise_multiplier=noise_multiplier,\n",
423-
" epochs=epochs,\n",
424-
" delta=1e-5)"
424+
" num_epochs=epochs,\n",
425+
" delta=1e-5))"
425426
]
426427
},
427428
{
@@ -430,7 +431,7 @@
430431
"id": "c-KyttEWFRDc"
431432
},
432433
"source": [
433-
"The tool reports that for the hyperparameters chosen above, the trained model has an $\\epsilon$ value of 1.18."
434+
"The tool reports that for the hyperparameters chosen above, the trained model has an $\\epsilon$ value of 3.426."
434435
]
435436
},
436437
{

0 commit comments

Comments
 (0)