udacity / private-ai

Repo for Udacity's Secure & Private AI course
451 stars 393 forks source link

Lesson 5.6 (Udacity) Section 1 - Differential Privacy - Project Varying Noise typo #15

Open LifeBringer opened 5 years ago

LifeBringer commented 5 years ago

Hi Andrew,

There was an error with the completion notes for Section 1 first_coin_flip = (torch.rand(len(db)) < noise).float() should be first_coin_flip = (torch.rand(len(db)) > noise).float()

Please see: https://youtu.be/_ByJgx6H0MQ?t=32 for reference.

https://github.com/udacity/private-ai/blob/master/completed/Section%202%20-%20Federated%20Learning.ipynb

mmalekzadeh commented 5 years ago

I have also noticed this error and pulled a fix here: https://github.com/udacity/private-ai/pull/14