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


ruta documentation built on Jan. 9, 2023, 1:20 a.m.