フィルターのクリア

Negative output neural networks

4 ビュー (過去 30 日間)
Hamza Ali
Hamza Ali 2017 年 6 月 27 日
回答済み: JESUS DAVID ARIZA ROYETH 2017 年 6 月 27 日
I trained my neural network, but it generates negative values even though the target values are positive. I wonder why ?

採用された回答

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2017 年 6 月 27 日
the output of the neural network depends on the transfer function of the output layer, if the results are negative you probably have a transfer function like "tansig" or "purelin", I recommend that if you don't want negative values you should change the transfer function, if the answer is in the range from 0 to 1 you can change it to "logsig" or whatever function you desire :
net.Layers{end}.transferFcn='logsig';

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by