how can change the output of neural network?

I want to add a number to output of NN ,or use 'round' or 'abs' for output to reduse the error of network how can I do that?

 Respuesta aceptada

Greg Heath
Greg Heath el 3 de Ag. de 2013
Editada: Greg Heath el 4 de Ag. de 2013
The network only calculates mse during training
Therefore, just replace the target matrix with
1. target + constant
2. round(target)
3. abs(target)
However, if you just want to modify a trained net,
1.net.b{2} = net.b{2}+ constant
2. Not possible. 'round' is not an acceptable transfer function.
3 Similarly for 'abs'
Hope this helps.
Thank you for formally accepting my answer
Greg

Más respuestas (1)

Greg Heath
Greg Heath el 31 de Jul. de 2013
output1 = net(input);
output2 = output1 + addednumber
rndoutput1 = round(output1)
absoutput1 = abs(output1)
Or am Imissing something?

1 comentario

mehdi
mehdi el 2 de Ag. de 2013
thanks a lot i want to make some change in NN like the things that you said,but I want to this changes would be happend inside the NN. I want that network uses this output for calculating 'mse'

Iniciar sesión para comentar.

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