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?

 Réponse acceptée

Greg Heath
Greg Heath le 3 Août 2013
Modifié(e) : Greg Heath le 4 Août 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

Plus de réponses (1)

Greg Heath
Greg Heath le 31 Juil 2013
output1 = net(input);
output2 = output1 + addednumber
rndoutput1 = round(output1)
absoutput1 = abs(output1)
Or am Imissing something?

1 commentaire

mehdi
mehdi le 2 Août 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'

Connectez-vous pour commenter.

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by