build_hidden_encoder {ML2Pvae} | R Documentation |
Build the encoder for a VAE
build_hidden_encoder(
input_size,
layers,
activations = rep("sigmoid", length(layers))
)
an integer representing the number of items | |
a list of integers giving the size of each hidden layer | |
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