Internal function to create autoencoder objects. Instead, consider using \link{autoencoder}.

new_autoencoder(network, loss, extra_class = NULL)

Arguments

network

Layer construct of class "ruta_network" or coercible

loss

A "ruta_loss" object or a character string specifying a loss function

extra_class

Vector of classes in case this autoencoder needs to support custom methods (for to_keras, train, generate or others)

Value

A construct of class "ruta_autoencoder"