AI, Machine Learning, Artificial Intelligence, Deep Learning, Data Science.
encoded_imgs_reshaped = encoded_imgs.reshape((len(encoded_imgs), -1, 4, 4)) # display some encoded images n = 10 # number of images to display plt.figure(figsize=(20, 4)) for i in range(n): # display original image ax = plt.subplot(2, n, i + 1) plt.imshow(x_test[i].reshape(28, 28)) plt.gray()