Sparsity regularization
sparsity(high_probability, weight)
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 Ruta regularizer object for the sparsity, to be inserted in the encoding layer.
Andrew Ng, Sparse Autoencoder. CS294A Lecture Notes