Skip to content

Commit

Permalink
Merge pull request #33 from vifly/patch-1
Browse files Browse the repository at this point in the history
make example in readme use Python3 print
  • Loading branch information
dblalock authored Jun 24, 2022
2 parents b984aae + f2da259 commit e7726a4
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 e7726a4

Please sign in to comment.