Learn R Programming

ANN2 (version 2.3.4)

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, ...)

# S3 method for ANN encode(object, newdata, compression.layer = NULL, ...)

Arguments

object

Object of class ANN

arguments to be passed down

newdata

Data to compress

compression.layer

Integer specifying which hidden layer is the compression layer. If NULL this parameter is inferred from the structure of the network (hidden layer with smallest number of nodes)