Why the mean square error value is changing for different training functions ?

1 次查看(过去 30 天)
I have used the training function "traingdm" in training my neural network.
_
%%%%%%%%%%%%%%%%%%%%%
net=newff(minmax(in'),[20,1],{'tansig','purelin'},'traingdm');
%%%%%%%%%%%%%%%%%%%%%
_
What will happen if I change the training function from "traingdm" to "traindx" ?
Does the change affect the mean square error ?

采纳的回答

Greg Heath
Greg Heath 2013-2-19
If the problem is not a trivial one do not expect the weights and MSEs to be the same.
To make a valid comparison you have to reset the random number generator to the same intial state(e.g., seed = 0, rng(seed)) to obtain the same default random data division and random weight initialization.
Different minimization algorithms cannot be expected to reach the same local minimum when started from the same initial point.
When you reset the random number generator and make new trial runs, please post a summary of the results. I'm interested in the % of times the results are the same.
Hope this helps.
Thank you for formally accepting my answer
Greg
  1 个评论
Mohan
Mohan 2013-2-25
Thank you for your reply Greg. When I reset the random number generator to the same initial state and make new trials, I am getting the same result again and again, even if I run it N number of times.
Only when I change the training function, I could see the change in the result. Even then, if I reset the random number generator to the same initial state, then the results are again the same. ( for that training function ).

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by