In neural network toolbox for the function: trainautencoder, how can I use purelin for encodertranferfunction?

1 view (last 30 days)
I am using the function "trainautencoder" in the neural network toolbox. I can set the decodertransferfunction to be purelin, but the encodertransferfunction cannot be set to purelin. Does anybody know why? And is there a way to set encoder function to also be purelin. My goal is to set up a LINEAR autencoder. Is there a better way then to make a linear atoenncoder?

Accepted Answer

Greg Heath
Greg Heath on 9 Nov 2016
Using purelin in a hidden layer is a waste of time.
You can get the same result by removing the layer and adjusting the output weights of the previous layer.
Hope this helps.
Thank you for formally accepting my answer
Greg
  1 Comment
david hartman
david hartman on 9 Nov 2016
But in an autoencoder, since there are two layers- encode and decode, how can one remove the activation of encode layer? It comes with autoencoder.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!