Negative output neural networks
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hamza Ali
il 27 Giu 2017
Risposto: JESUS DAVID ARIZA ROYETH
il 27 Giu 2017
I trained my neural network, but it generates negative values even though the target values are positive. I wonder why ?
0 Commenti
Risposta accettata
JESUS DAVID ARIZA ROYETH
il 27 Giu 2017
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Define Shallow Neural Network Architectures in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!