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

 채택된 답변

Greg Heath
Greg Heath 2013년 3월 10일
편집: Greg Heath 2013년 3월 10일

0 개 추천

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

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

질문:

2013년 3월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by