Commit graph

37 commits

Author SHA1 Message Date
Shuang Song
48b3b6a51b
Merge pull request #185 from carlini/neuracrypt
Add NeuraCrypt attack code to research directory
2022-02-14 13:23:36 -08:00
Shuang Song
66338409b7
Merge pull request #184 from carlini/instahide
Add InstaHide attack code to research folder
2022-02-14 13:23:16 -08:00
Shuang Song
3d499e69ba
Merge pull request #183 from carlini/better-mi
Add research code to reproduce Membership Inference Attacks From First Principles
2022-02-14 13:21:40 -08:00
Michael Reneer
b0803999ad Add license and missing build targets to __init__.py files in TensorFlow Privacy.
* Added license.
* Removed `.../membership_inference_attack/codelabs/__init__.py`, this code does not look like it needs to be part of the Python package.
* Removed `.../research/pate_2017/__init__.py`, this code does not look like it needs to be part of the Python package.

PiperOrigin-RevId: 424682641
2022-01-27 12:40:23 -08:00
Nicholas Carlini
bf9a58d26b Add citation 2021-12-14 00:59:37 +00:00
Nicholas Carlini
a41549d103 Prettier README 2021-12-14 00:54:29 +00:00
Nicholas Carlini
7e40ad9704 Add code to reproduce Membership Inference Attacks From First Principles 2021-12-14 00:50:49 +00:00
Nicholas Carlini
1093710ab8 Add NeuraCrypt attack code 2021-07-07 04:21:13 +00:00
Nicholas Carlini
28b8a80924 Add InstaHide Attack paper to research folder 2020-12-05 01:20:49 +00:00
A. Unique TensorFlower
f7b4a30120 Merge pull request #89 from woodyx218:GDPrivacy
PiperOrigin-RevId: 307695867
2020-04-21 15:48:54 -07:00
Steve Chien
264820cb3f Automated rollback of changelist 306513264
PiperOrigin-RevId: 307694393
2020-04-21 15:38:12 -07:00
A. Unique TensorFlower
9627cc0ed8 COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/privacy/pull/89 from woodyx218:GDPrivacy d06340e1cf
PiperOrigin-RevId: 306534693
2020-04-15 08:31:10 -07:00
Yanhua Sun
b0df24ef25 Explicitly replace "import tensorflow" with "tensorflow.compat.v1" for TF2.x migration
PiperOrigin-RevId: 297199727
2020-02-25 14:11:47 -08:00
woodyx218
d06340e1cf
Update imdb_tutorial.py 2020-02-21 09:35:47 -05:00
woodyx218
b13f2f6067
Update adult_tutorial.py 2020-02-21 09:35:18 -05:00
woodyx218
fe82de2cfe
Rename research/imdb_tutorial.py to research/GDP_2019/imdb_tutorial.py 2020-02-21 00:50:57 -05:00
woodyx218
681a156f3f
Rename research/adult_tutorial.py to research/GDP_2019/adult_tutorial.py 2020-02-21 00:50:42 -05:00
woodyx218
f29f101b23
Move tutorial for IMDB dataset to research folder 2020-02-21 00:49:02 -05:00
woodyx218
5d69c692e1
Move tutorial for adult dataset to research folder 2020-02-21 00:48:16 -05:00
Nicolas Papernot
a1e9ca2a18 Closes #32
PiperOrigin-RevId: 239054994
2019-03-18 13:58:07 -07:00
npapernot
2aa9debb91 glint 2019-03-18 17:01:25 +00:00
npapernot
a209988d87 docstrings 2019-03-18 16:58:06 +00:00
npapernot
e55a832d54 fnames 2019-03-18 16:49:34 +00:00
npapernot
b6c932ec66 quotes 2019-03-18 16:47:36 +00:00
npapernot
4784b0f31e pylint edits 2019-03-18 16:42:59 +00:00
Nicolas Papernot
ec2204ac97
rename var 2019-03-18 09:27:57 -07:00
Nicolas Papernot
38ae6ce3b3
reorder imports 2019-03-18 09:23:59 -07:00
Nicolas Papernot
0b5780b4e6
Update input.py 2019-03-18 09:22:38 -07:00
Nicolas Papernot
469c2da8c4
Update input.py 2019-03-18 09:21:04 -07:00
Nicolas Papernot
d139d94f32
Update input.py 2019-03-18 07:29:18 -07:00
an1006634493
5bac796ee6
Record one change for Python3
In Python 3, cPickle is replaced by pickle.
2019-03-18 22:09:46 +08:00
Nicolas Papernot
947e17dcce Closes #28
PiperOrigin-RevId: 238274605
2019-03-13 11:56:31 -07:00
Nicolas Papernot
be815437a6
reorder imports 2019-03-08 09:47:15 -08:00
cclauss
1fc7128da0
from six.moves import xrange
__xrange()__ was removed in Python 3 in favor of a reworked version of __range()__.

[flake8](http://flake8.pycqa.org) testing of https://github.com/tensorflow/privacy on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
```
./privacy/optimizers/gaussian_query_test.py:65:16: F821 undefined name 'xrange'
      for _ in xrange(1000):
               ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:79:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:106:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:139:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
4     F821 undefined name 'xrange'
4
```
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org) issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
2019-03-08 10:33:26 +01:00
badbayesian
e86cf16986 FIX: python3 compatibility 2019-01-15 14:54:28 -06:00
badbayesian
4c9971d4a8 FIX: python3 compatibility 2019-01-15 14:52:53 -06:00
Nicolas Papernot
93e9585f18 Add missing licenses.
PiperOrigin-RevId: 229241117
2019-01-14 16:02:35 -08:00