sparsity: Sparsity regularization

View source: R/autoencoder_sparse.R

sparsityR Documentation

Sparsity regularization

Description

Sparsity regularization

Usage

sparsity(high_probability, weight)

Arguments

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

Value

A Ruta regularizer object for the sparsity, to be inserted in the encoding layer.

References

See Also

autoencoder_sparse, make_sparse, is_sparse


fdavidcl/ruta documentation built on July 5, 2023, 6:32 p.m.