build_hidden_encoder: Build the encoder for a VAE

Description Usage Arguments Value

View source: R/build_hidden_encoder.R

Description

Build the encoder for a VAE

Usage

1
2
3
4
5
build_hidden_encoder(
  input_size,
  layers,
  activations = rep("sigmoid", length(layers))
)

Arguments

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

Value

two tensors: the input layer to the VAE and the last hidden layer of the encoder


converseg/ML2Pvae documentation built on April 6, 2021, 1:46 a.m.