Learn R Programming

ruta (version 1.2.0)

to_keras.ruta_layer_variational: Obtain a Keras block of layers for the variational autoencoder

Description

This block contains two dense layers representing the mean and log var of a Gaussian distribution and a sampling layer.

Usage

# S3 method for ruta_layer_variational
to_keras(x, input_shape, model = keras::keras_model_sequential(), ...)

Value

A Layer object from Keras

Arguments

x

The layer object

input_shape

Number of features in training data

model

Keras model where the layers will be added

...

Unused

References