From f2da25983b775aed4da2d7b4606a2a74d3178519 Mon Sep 17 00:00:00 2001 From: Vifly Date: Thu, 23 Jun 2022 20:19:44 +0800 Subject: [PATCH] example use Python3 print --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6fe95e0b..891efdb9 100644 --- a/README.md +++ b/README.md @@ -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