How to change the performance function of neural network to mean absolute relative error
Afficher commentaires plus anciens
Hello,
I know the Matlab NN toolbox has MSE, SSE, MAE and SAE performance functions but would like to implement a custom performance function as:
myperf=mean(abs((t-y)./t));
where t is the target output vector and y is the NN output.
Any thoughts on how can this be implemented?
Thanks in advance.
Réponse acceptée
Plus de réponses (1)
Greg Heath
le 28 Avr 2017
You have at least 2 obstacles:
1. When t --> 0
2. abs is not differentiable
If t --> 0 is not a problem try
myperf = mse( 1-y./t);
Hope this helps.
Thank you for formally accepting my answer
Greg
1 commentaire
Kamuran Turksoy
le 28 Avr 2017
Modifié(e) : Kamuran Turksoy
le 28 Avr 2017
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!