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?

 Accepted Answer

Greg Heath
Greg Heath on 3 Aug 2013
Edited: Greg Heath on 4 Aug 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

More Answers (1)

output1 = net(input);
output2 = output1 + addednumber
rndoutput1 = round(output1)
absoutput1 = abs(output1)
Or am Imissing something?

1 Comment

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'

Sign in to comment.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 30 Jul 2013

Community Treasure Hunt

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

Start Hunting!