Stacked Autoencoder for regression output layer

I am trying to use stacked auto encoder (SAE) by following this link:
I get that the first two autoencoders can be stacked normally, however my problem is regression output and the last layer which is stacked in the link is trainSoftmaxLayer.
Below is the code i would like to replace:
softnet = trainSoftmaxLayer(feat2,tTrain,'MaxEpochs',400);
Which should look like:
regNet = trainRegressionLayer(feat2,tTrain,'MaxEpochs',400);
Is there any way to train regression layer with SAE?

Answers (0)

Products

Release

R2021a

Asked:

on 1 Jul 2021

Community Treasure Hunt

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

Start Hunting!