How can change the performance function in neural network ?

5 views (last 30 days)
I have Matlab versions R2013a and R2012b. I want to customize the performance function for neural network online training using 'adapt' function. The default performance function for both adapt/train functions is 'mse'. How can I change this function for adapt function.
What I tried so far: I tried changing the 'performFcn' to a .m file I wrote. Using the standard template of mse.m. I wrote all the necessary functions and the dcos function for gradient error function as well. But everything gave random errors - which mostly I traced back to the problem that latest versions of Matlab dont allow overriding 'mse' for adapt function. Is it true ?
Irrespective of that - how do I customize the performance function for neural network ?
Thanks
Anush
  4 Comments
Giorgio
Giorgio on 27 Mar 2015
Hi Anush, Did you solve your problem ?? i'm working on MATLAB R2014b and i'm stuck to your same problem.
Thanks

Sign in to comment.

Accepted Answer

Greg Heath
Greg Heath on 28 Mar 2015
The PATTERNNET default is crossentropy. There is nothing more for you to do except make sure that the target matrix columns are from eye(c) for c classes..
help crossentropy
doc crossentropy
type crossentropy
Hope this helps
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!