Autoencoder.view - View autoencoder - MATLAB (original) (raw)

Main Content

Class: Autoencoder

Syntax

Description

view([autoenc](#buxdn6v%5Fsep%5Fshared-autoenc)) returns a diagram of the autoencoder, autoenc.

example

Input Arguments

expand all

Trained autoencoder, returned as an object of the Autoencoder class.

Examples

expand all

Load the training data.

Train an autoencoder with a hidden layer of size 5 and a linear transfer function for the decoder. Set the L2 weight regularizer to 0.001, sparsity regularizer to 4 and sparsity proportion to 0.05.

hiddenSize = 5; autoenc = trainAutoencoder(X, hiddenSize, ... 'L2WeightRegularization',0.001, ... 'SparsityRegularization',4, ... 'SparsityProportion',0.05, ... 'DecoderTransferFunction','purelin');

Figure Neural Network Training (02-Feb-2025 06:20:14) contains an object of type uigridlayout.

View the autoencoder.

Version History

Introduced in R2015b