Home >
Software design > How to fix the error of "plt.scatter(x_test_encoded[:, 0], x_test_encoded[:, 1], c=y_test)"
How to fix the error of "plt.scatter(x_test_encoded[:, 0], x_test_encoded[:, 1], c=y_test)"
I'm testing the "Variational autoencoder (VAE)
" from this link:
![enter image description here](https://img.codepudding.com/202207/c04563eac2aa4571809c01c0a667ed08.png)
Since z
consists of two latent variables, you index 0 and 1.