neural net performance function 'msereg' disabled in 2013B

3 views (last 30 days)
I notice that 'msereg' neural net performance function disabled in 2013B. Any attempt to set net.performFcn='msereg' reverts back to 'mse'. For where in the code this happens, see ...\toolbox\nnet\nnet\@network\subsagn.m line 1901. Temporarily commenting out lines 1901-1903 allows to create a NN with net.performFcn='msereg' but training such a net results in an error.
Why was this functionality removed? Why does the documentation still mention is? Can this functionality be restored in any way?
Richard Hodges

Accepted Answer

Greg Heath
Greg Heath on 3 Dec 2013
It was probably discontinued because mse now has a regularization option.
help mse
HTH
Thank you for formally accepting my answer
Greg
  4 Comments
Greg Heath
Greg Heath on 20 Feb 2014
For some reason
net.trainFn = 'trainbr';
net.performFcn = 'mse'
does result in regularization where the weights alpha and beta are AUTOMATICALLY determined.
To try to understand how the regularization is done,
type trainbr
find gamk
find ssX
I haven't figured the logic out yet.
Bottom line: Accept the default 'mse' and it will work fine. The time history of gamk and ssK can be obtained from the training history
gamk = tr.gamk
ssX = tr.ssX
Hope this helps.
Greg
P.S. Report this to MATLAB
Mohd Khan
Mohd Khan on 13 Feb 2023
I would really like to know that is this tr.gamk. It is reported as 29.1771 in my case. I understant that 29 is the number of parameters used by the model in current stage but I have not idea what is 1771. Kindly, help me out.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!