Creates a representation of a sparse autoencoder.
autoencoder_sparse(network, loss = "mean_squared_error", high_probability = 0.1, weight = 0.2)
Layer construct of class
Character string specifying a loss function
Expected probability of the high value of the encoding layer. Set this to a value near zero in order to minimize activations in that layer.
The weight of the sparsity regularization
A construct of class