diff --git a/mnist_gan.py b/mnist_gan.py index 3506a8c..180d6da 100644 --- a/mnist_gan.py +++ b/mnist_gan.py @@ -45,7 +45,7 @@ X_train /= 255 X_test /= 255 -print np.min(X_train), np.max(X_train) +print(np.min(X_train), np.max(X_train)) print('X_train shape:', X_train.shape) print(X_train.shape[0], 'train samples') @@ -161,7 +161,7 @@ def plot_gen(n_ex=16,dim=(4,4), figsize=(10,10) ): n_tot = y.shape[0] n_rig = (diff==0).sum() acc = n_rig*100.0/n_tot -print "Accuracy: %0.02f pct (%d of %d) right"%(acc, n_rig, n_tot) +print("Accuracy: %0.02f pct (%d of %d) right"%(acc, n_rig, n_tot)) # set up loss storage vector losses = {"d":[], "g":[]}