How to write custom performance function for neural network in MATLAB 2012b (neural network toolbox 8.0)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Samiul Hayder Choudhury
il 11 Mar 2013
Commentato: Greg Heath
il 20 Feb 2015
Hi,
I am having problem in editing the performance function to create a customized entropy function for the neural network. The available functions are mse, mae, sse and sae. In the available tutorials, it's mentioned that I can use mse as a template and edit it according to my choice. I used the mse function and its subfunctions and renamed the function name as, say, 'myFunc' and saved it to my working directory. But when I try to incorporate this in the network by assigning net.performFcn = 'myFunc', it does not show any compilation error but the train function does not work. I think I am missing some steps in assigning 'myFunc' as a performance function. I have also found that the template is drastically different in MATLAB 2010 version.
Please provide me the solution for this problem.
Thanks in advance.
Samiul H. Choudhury
0 Commenti
Risposta accettata
Greg Heath
il 12 Mar 2013
I think we should start where you left off. So, post your code. With relevant comments.
Which entropy function? Exclusive classes ( dog, cat, mouse ...) or Nonexclusive classes ( short, fat, bald, ugly,...)
Greg
P.S. I had one or two crossentropy functions working on my old machine that crashed. I don't plan to pay for it's recovery. However, I wrote quite a bit about the process in comp.ai.neural-nets. Try searching there using
greg entropy
Hope this helps.
Greg
2 Commenti
Greg Heath
il 20 Feb 2015
Not sure why I never replied to this. However, descriptions of what someone thinks they did are no substitution for seeing the actual code and, if it runs, either the output from one of the MATLAB example data sets in
help nndatasets
doc nndatasets
or the resulting error messages.
ope this helps.
Greg
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!