MATLAB: Regarding Neural network fitting tool

nftool

Hi I have two data sets 1. Training data: To train the neural network 2 test data: to use neural network to predict the result
I have used the training data to train the rquired neural model. Now I want to use the model to predict answers fpr my test data. But I dont know how to predict answer from my test data.
Please Help

Best Answer

Everything you need is stored in the training structure tr. Just type tr = tr with no semicolon to see what is there.
[ net tr Y E ] = train(net,x,t);
tstInd = tr.divideParam.testInd;
Ytst = Y(:,tstInd);
Etst = E(:,tstInd);
MSEtst = mse(Etst)
bestepoch = tr.best_epoch
MSEtst = tr.tperf(bestepoch)
Hope this helps.
Thank you for formally accepting my answer
Greg