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
fea6447a
Unverified
Commit
fea6447a
authored
Apr 29, 2018
by
Ilya Mironov
Committed by
GitHub
Apr 29, 2018
Browse files
Merge pull request #4126 from npapernot/master
fix import errors and type error in numpy for the PATE implementation
parents
7f351c62
cf60559f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
research/differential_privacy/__init__.py
research/differential_privacy/__init__.py
+1
-0
research/differential_privacy/multiple_teachers/__init__.py
research/differential_privacy/multiple_teachers/__init__.py
+1
-0
research/differential_privacy/multiple_teachers/analysis.py
research/differential_privacy/multiple_teachers/analysis.py
+1
-1
No files found.
research/differential_privacy/__init__.py
View file @
fea6447a
research/differential_privacy/multiple_teachers/__init__.py
0 → 100644
View file @
fea6447a
research/differential_privacy/multiple_teachers/analysis.py
View file @
fea6447a
...
@@ -240,7 +240,7 @@ def main(unused_argv):
...
@@ -240,7 +240,7 @@ def main(unused_argv):
counts_mat
=
np
.
zeros
((
n
,
10
)).
astype
(
np
.
int32
)
counts_mat
=
np
.
zeros
((
n
,
10
)).
astype
(
np
.
int32
)
for
i
in
range
(
n
):
for
i
in
range
(
n
):
for
j
in
range
(
num_teachers
):
for
j
in
range
(
num_teachers
):
counts_mat
[
i
,
input_mat
[
j
,
i
]]
+=
1
counts_mat
[
i
,
int
(
input_mat
[
j
,
i
]
)
]
+=
1
n
=
counts_mat
.
shape
[
0
]
n
=
counts_mat
.
shape
[
0
]
num_examples
=
min
(
n
,
FLAGS
.
max_examples
)
num_examples
=
min
(
n
,
FLAGS
.
max_examples
)
...
...
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