AI, Machine Learning, Artificial Intelligence, Deep Learning, Data Science.
ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) # Reconstructed image using PCA ax = plt.subplot(2, 5, i + 6) plt.imshow(pca.inverse_transform(x_test_pca)[i].reshape(28, 28)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.suptitle("Original