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

 Respuesta aceptada

Greg Heath
Greg Heath el 10 de Mzo. de 2013
Editada: Greg Heath el 10 de Mzo. de 2013

0 votos

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

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by