|
• Matlab parameters
Matlab isn't so "professional" the only parameters existing are the ones listed in the Help or in m-file comment.
To be sure look at the first line of of a training function m-file where it says:
case 'pdefaults',
For example in the traingd.m:
case 'pdefaults',
trainParam.epochs = 100;
trainParam.goal = 0;
trainParam.lr = 0.01;
trainParam.max_fail = 5;
trainParam.mc = 0.9;
trainParam.min_grad = 1e-10;
trainParam.show = 25;
trainParam.time = inf;
net = trainParam;
As I said before the only solution is edit the m-file.
Anyway your code doesn't have to do this work; simply edit the training function you want to use and save it without changing the names.
If you don't believe that matlab sometimes isn't "professional" read the neural network toolbox help at the paragraph:
Using nueral...\Backpropagation\Fundamentals\Training
It's says:
If the new performance function on a given iteration exceeds the performance function on a previous
iteration by more than a predefined ratio max_perf_inc (typically 1.04), the new weights and biases
are discarded, and the momentum coefficient mc is set to zero.
but this trainParam doesn't and the code that makes the thing described above don't exist so the MSE is very oscillating.
|