i have written a code it is about training a neural network , no matter what i do its training performance is not stable , i know that there is always some differences between training performances in each run but in my case the results are so much different, some times my network experiences overfitting some times it experiences underfitting sometimes its training error is fair enough, it is getting really frustrating i don't know what to do!!!!i have changed my traing functions to see if i can get better performance, for each of them i had to change my network structure too but at the end , i again faced with the same problem
if true net=feedforwardnet(100);net.trainFcn='traingdm';
net.divideParam.trainRatio=1 net.divideParam.valRatio=0 net.divideParam.testRatio=0
net.trainparam.epochs=1000; [net,tr]=train(net,xl,TL); Y=net(xl);
endthere is a specific reason for putting net.divideParam.trainRatio=1
Best Answer