>How to customize training a Network? >Jana asked about 3 hours ago >Is it possible to customize the training of a Neural Network?
Yes
>I know that matlab splits the data into training, validation and test set automatically.
However, it also
1. Removes constant rows
2. Prepares rows that have NaN values
3. Normalizes the input and output training variables to the closed interval [-1,1],
4. Normalizes the val and test data with the min and max values from the training set.
>My question is: can you train a network with a given training set, validate it manually with a validation set and manually test it with another set?
> How can I force matlab to do this?
You cannot manually use validation set stopping to prevent overtraining an overfit network.
However, you can use a validation set to rank multiple candidate designs obtained from many weight initialization trials for each of multiple candidate No. of hidden node values, H.
In a similar search, the other default training parameters can be overwritten.
Divide the data before creating the net. After creating the net set
net.divideParam.trainRatio = 100;
net.trainParam.goal = 0.01*mean(var(t'));
and exclude the val set from training.
See the documentation for further disussions
Getting Started: 4 sections titled "Using Command-Line Functions"
User's Guide/Advanced Topics: Custom Networks
Hope this helps.
Greg