wenzhu23333 / Differential-Privacy-Based-Federated-Learning

Everything you want about DP-Based Federated Learning, including Papers and Code. (Mechanism: Laplace or Gaussian, Dataset: femnist, shakespeare, mnist, cifar-10 and fashion-mnist. )
GNU General Public License v3.0
348 stars 55 forks source link

为什么每次训练出来的精度都是一样的呢 #27

Closed studyupupup closed 7 months ago

studyupupup commented 7 months ago

您好,我发现每次训练出来的精度都是相同的,是为什么呢

wenzhu23333 commented 7 months ago

因为用的随机种子相同

studyupupup commented 7 months ago

为什么要使用相同的随机种子呢,我不是太理解,可以用不同或者随机的种子吗,不同的随机种子是会有什么弊端吗

wenzhu23333 commented 7 months ago

为了能复现结果,随机种子你可以自己调整,多少都行

studyupupup commented 7 months ago

好的,谢谢