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?

 Akzeptierte Antwort

Greg Heath
Greg Heath am 3 Aug. 2013
Bearbeitet: Greg Heath am 4 Aug. 2013

0 Stimmen

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

Weitere Antworten (1)

Greg Heath
Greg Heath am 31 Jul. 2013

0 Stimmen

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

1 Kommentar

mehdi
mehdi am 2 Aug. 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'

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by