Class: Autoencoder
Stack encoders from several autoencoders together
stackednet = stack(autoenc1,autoenc2,...)
returns
a network
object created by stacking the encoders
of the autoencoders, autoenc1
, autoenc2
,
and so on.
The size of the hidden representation of one autoencoder must match the input size of the next autoencoder or network in the stack.
The first input argument of the stacked network is the input argument of the first autoencoder. The output argument from the encoder of the first autoencoder is the input of the second autoencoder in the stacked network. The output argument from the encoder of the second autoencoder is the input argument to the third autoencoder in the stacked network, and so on.
The stacked network object stacknet
inherits
its training parameters from the final input argument net1
.