View source: R/build_hidden_encoder.R
build_hidden_encoder | R Documentation |
Build the encoder for a VAE
build_hidden_encoder( input_size, layers, activations = rep("sigmoid", length(layers)) )
input_size |
an integer representing the number of items |
layers |
a list of integers giving the size of each hidden layer |
activations |
a list of strings, the same length as layers |
two tensors: the input layer to the VAE and the last hidden layer of the encoder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.