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 で Sequence and Numeric Feature Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!