Closed HongshengHu closed 4 years ago
Hi,
The code now only performs per-instance clipping. We no longer do batch-clipping as it does not provide any useful model utility. However, you can still make the code do batch-clipping by varying the num_microbatches in https://github.com/bargavj/EvaluatingDPML/blob/92137df443fb469dae99604047ac862ff49b7440/classifier.py#L67. For instance, you can set num_microbatches = 1.
Hi,
The code now only performs per-instance clipping. We no longer do batch-clipping as it does not provide any useful model utility. However, you can still make the code do batch-clipping by varying the num_microbatches in
. For instance, you can set num_microbatches = 1.
Thanks for your reply.
Hi Dr.Bargavj,
I am reading your paper "Evaluating Differentially Private Machine Learning in Practice" and have some questions as follows.
I noticed that you did experiments comparing effects on batch clipping and per-instance clipping, however, I did not find how to set parameters in your code to do this experiment. Does just setting "--target_batch_size=1" in evaluating_dpml.py file means per-instance clipping?
Many thanks if you can kindly reply to it.