Skip to content

Commit

Permalink
example use Python3 print
Browse files Browse the repository at this point in the history
  • Loading branch information
vifly authored Jun 23, 2022
1 parent b984aae commit f2da259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ for i, q in enumerate(Q):
dot_corrs[i] = corr(dots_true, dots_bolt)[0]

# dot products closely preserved despite compression
print "dot product correlation: {} +/- {}".format(
np.mean(dot_corrs), np.std(dot_corrs)) # > .97
print("dot product correlation: {} +/- {}".format(
np.mean(dot_corrs), np.std(dot_corrs))) # > .97

# massive space savings
print(X.nbytes) # 1777 rows * 64 cols * 8B = 909KB
Expand Down

0 comments on commit f2da259

Please sign in to comment.