ERROR: A regression layer must not be preceded by a softmax layer.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello, I want to ask why a regression layer must not be preceded by a softmax layer? If I want to add a softmaxlayer before regressionlayer, what should I do?
0 Kommentare
Antworten (1)
Greg Heath
am 13 Apr. 2018
Softmax is designed to be a classifier output component that yields a classification probability output with components in [0 1 ] and column sums of 1.
Combining the output of multiple classifiers is the only configuration I can think of where the softmax layer may not be the output layer.
Hope this helps.
Thank you for formally accepting my answer
Greg
1 Kommentar
Rotem Mairon
am 7 Okt. 2019
This is true, I think. However, if you try to run a network with the last layer being softmax, in Matlab you would get the following error message: "Missing output layer. The network must have one output layer." So how can one use softmax as output?
Thanks for your time.
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!