to_keras.ruta_autoencoder: Extract Keras models from an autoencoder wrapper

View source: R/autoencoder.R

to_keras.ruta_autoencoderR Documentation

Extract Keras models from an autoencoder wrapper

Description

Extract Keras models from an autoencoder wrapper

Usage

## S3 method for class 'ruta_autoencoder'
to_keras(
  x,
  encoder_end = "encoding",
  decoder_start = "encoding",
  weights_file = NULL,
  ...
)

## S3 method for class 'ruta_autoencoder_variational'
to_keras(x, ...)

Arguments

x

Object of class "ruta_autoencoder". Needs to have a member input_shape indicating the number of attributes of the input data

encoder_end

Name of the Keras layer where the encoder ends

decoder_start

Name of the Keras layer where the decoder starts

weights_file

The name of a hdf5 weights file in order to load from a trained model

...

Additional parameters for to_keras.ruta_autoencoder

Value

A list with several Keras models:

  • autoencoder: model from the input layer to the output layer

  • encoder: model from the input layer to the encoding layer

  • decoder: model from the encoding layer to the output layer

See Also

⁠\link{autoencoder}⁠


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