Regarding Neural network fitting tool

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

 Accepted Answer

Greg Heath
Greg Heath on 10 Mar 2013
Edited: Greg Heath on 10 Mar 2013
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

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!