An adversarial autoencoder (Makhzani et al., 2015) is an autoencoder whose latent codes are also pushed toward a chosen prior by a discriminator. The first part is an ordinary reconstruction loss, mean squared error here.
Implement reconstruction_mse(x, x_hat), the mean squared error over all entries.
Square the differences, then take the mean.
No results yet
Run your code to check it against the examples, or submit to run every test.