Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How can I train data separated into subsets

  1. Oct 5, 2006 #1
    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!
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted