ERROR: A regression layer must not be preceded by a softmax layer.

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?

답변 (1개)

Greg Heath
Greg Heath 2018년 4월 13일

0 개 추천

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

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2018년 4월 12일

댓글:

2019년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by