Unverified Commit fea6447a authored by Ilya Mironov's avatar Ilya Mironov Committed by GitHub
Browse files

Merge pull request #4126 from npapernot/master

fix import errors and type error in numpy for the PATE implementation
parents 7f351c62 cf60559f
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment