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

to_keras.ruta_layer_variationalR Documentation

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 class 'ruta_layer_variational'
to_keras(x, input_shape, model = keras::keras_model_sequential(), ...)

Arguments

x

The layer object

input_shape

Number of features in training data

model

Keras model where the layers will be added

...

Unused

Value

A Layer object from Keras

References


fdavidcl/ruta documentation built on July 5, 2023, 6:32 p.m.