A contractive autoencoder adds a penalty term to the loss function of a basic autoencoder which attempts to induce a contraction of data in the latent space.
autoencoder_contractive(network, loss, weight)
Layer construct of class
Character string specifying the reconstruction error part of the loss function
Weight assigned to the contractive loss
A construct of class