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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!