Example source: https://github.com/fdavidcl/ruta/blob/master/vignettes/examples/autoencoder_robust.R


This example demonstrates the use of robust autoencoders with the Ruta package.

Define a robust autoencoder with 36-variable encoding.

Load MNIST and normalize

Train

Generate reconstructions from test data

Utility functions for plotting

Plot reconstructions

Generate noisy test data and plot denoised reconstructions. Notice that values of noisy instances may not restrict themselves to the \([0,1]\) range.