How to write custom performance function for neural network in MATLAB 2012b (neural network toolbox 8.0)
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Greg Heath
2013-3-12
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 个评论
Greg Heath
2015-2-20
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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!