MATLAB Training subsets of data in Matlab

  • Thread starter chamrik
  • Start date
Hi all,

Maybe i shud put it this way. Suppose I want to perform training on part of the data and leave the rest for testing. the training set is separated into subsets whereby I train one subset first, and use its weights and biases as weights to the next subset and so on. Then how to I write that loop taking into consideration that after I present every sample for training I will repeat the same process. Under normal circumstances we do this:

net = newff(mimax(x),[2,2],{'logsig','purelin'},'traingd');
net = train(net,x,t);

But now I want to perform something like this:

net = train(net,xtrain1,ttrain1);
net = train(net,xtrain2,ttrain2);

Maybe at this stage I can simulate and then if need be train again, go back to the above step.

but how do I present this in a form of a loop?

Please help!
 

Want to reply to this thread?

"Training subsets of data in Matlab" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top