How can i define the output range in Neural Network?

I attached the following script for explanations. But, i'm getting values (negative values) from out of define range some of the times. How can i control it?
% Outputs Range net.outputs {1}.range = [ 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 0.25; 0 6; 0 0.15]
% Train the Network [net,tr] = train(net,inputs,targets);

1 comentario

Greg Heath
Greg Heath el 30 de Jul. de 2013
Editada: Greg Heath el 1 de Ag. de 2013
Please Include previous code statements

Iniciar sesión para comentar.

 Respuesta aceptada

Greg Heath
Greg Heath el 31 de Jul. de 2013

0 votos

Change the output transfer function to tansig. Then the default normalized output bounds (-1,1) will be mapped into minmax(target)
Hope this helps.
Thank you for formally accepting my answer
Greg

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by