AI, Machine Learning, Artificial Intelligence, Deep Learning, Data Science.
some of the original and reconstructed images import matplotlib.pyplot as plt n = 10 # number of images to display plt.figure(figsize=(20, 4)) for i in range(n): # Original image ax = plt.subplot(2, n, i + 1) plt.imshow(x_test[i].reshape(28, 28)) plt.gray() ax.get_xaxis().set_visible(False)