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

 Réponse acceptée

Greg Heath
Greg Heath le 10 Mar 2013
Modifié(e) : Greg Heath le 10 Mar 2013

0 votes

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

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by