Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
a66b9e13
Commit
a66b9e13
authored
Nov 16, 2016
by
Nicolas Papernot
Committed by
Benoit Steiner
Nov 16, 2016
Browse files
added semi-supervised training of the student using improved-gan (#655)
parent
ffe51b30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
differential_privacy/multiple_teachers/README.md
differential_privacy/multiple_teachers/README.md
+14
-0
differential_privacy/multiple_teachers/train_student_mnist_250_lap_20_count_50_epochs_600.sh
...ers/train_student_mnist_250_lap_20_count_50_epochs_600.sh
+9
-0
No files found.
differential_privacy/multiple_teachers/README.md
View file @
a66b9e13
...
@@ -63,6 +63,20 @@ training points (they will be labeled using the teacher predictions). The
...
@@ -63,6 +63,20 @@ training points (they will be labeled using the teacher predictions). The
remaining samples are used for evaluation of the student's accuracy, which
remaining samples are used for evaluation of the student's accuracy, which
is displayed upon completion of training.
is displayed upon completion of training.
## Using semi-supervised GANs to train the student
In the paper, we describe how to train the student in a semi-supervised
fashion using Generative Adversarial Networks. This can be reproduced for MNIST
by cloning the
[
improved-gan
](
https://github.com/openai/improved-gan
)
repository and adding to your
`PATH`
variable before running the shell
script
`train_student_mnist_250_lap_20_count_50_epochs_600.sh`
.
```
export PATH="/path/to/improved-gan/mnist_svhn_cifar10":$PATH
sh train_student_mnist_250_lap_20_count_50_epochs_600.sh
```
## Alternative deeper convolutional architecture
## Alternative deeper convolutional architecture
Note that a deeper convolutional model is available. Both the default and
Note that a deeper convolutional model is available. Both the default and
...
...
differential_privacy/multiple_teachers/train_student_mnist_250_lap_20_count_50_epochs_600.sh
0 → 100644
View file @
a66b9e13
# Be sure to clone https://github.com/openai/improved-gan
# and add improved-gan/mnist_svhn_cifar10 to your PATH variable
# Download labels used to train the student
wget https://github.com/npapernot/multiple-teachers-for-privacy/blob/master/mnist_250_student_labels_lap_20.npy
# Train the student using improved-gan
THEANO_FLAGS
=
'floatX=float32,device=gpu,lib.cnmem=1'
train_mnist_fm_custom_labels.py
--labels
mnist_250_student_labels_lap_20.npy
--count
50
--epochs
600
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment