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

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

Define a denoising autoencoder with 36-variable encoding.

Load MNIST and normalize


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.