I have this code:
in = [5 columns of data-points];
out = [1 column of data-points];
net = newfit(in,out,5);
net = train(net,in,out);
now I want to
- access the error variable that is generated (so that I can calculate the mean error etc.)
- run this in a loop, so I want to re-initialize weights between loops.
- access the variable that stores the time it took to run
How can these three things be done from command line?
[I know how these things can be done with nntool
GUI]
Example:
NOTE: In R2010b,
newfit
function was deprecated in favor offitnet
, use the following code instead to create the network: