View source: R/autoencoder_sparse.R
make_sparse | R Documentation |
Add sparsity regularization to an autoencoder
make_sparse(learner, high_probability = 0.1, weight = 0.2)
learner |
A |
high_probability |
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. |
weight |
The weight of the sparsity regularization |
The same autoencoder with the sparsity regularization applied
sparsity
, autoencoder_sparse
, is_sparse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.