Learn R Programming

ANN2 (version 1.5)

encode: Encoding step

Description

Compress data according to trained replicator or autoencoder. Outputs are the activations of the nodes in the middle layer for each observation in newdata

Usage

encode(object, newdata, returnInputs = FALSE)

Arguments

object

Object of class ANN

newdata

Data to compress

returnInputs

Logical indicating whether the inputs to the compression layer should be returned. Mainly used for plotting the activations.