R/autoencoder_sparse.R
to_keras.ruta_sparsity.Rd
Translate sparsity regularization to Keras regularizer
# S3 method for ruta_sparsity
to_keras(x, activation, ...)
Sparsity object
Name of the activation function used in the encoding layer
Unused
Function which can be used as activity regularizer in a Keras layer
Andrew Ng, Sparse Autoencoder. CS294A Lecture Notes (2011)