testing a neural network program

I have done a neural network program with matlab. I have trained the program with batch training mode. Now I want to test if the program work well. I know I can not change the weights in testing mode ie. the old weights under training mode in the network must be unchanged. I have trained the network with 26 different patterns simultaneously at every epoch and total 1014 patterns. Therefore, the weights in the network is initiated for 26 patterns. Now I want to test the network with just one patterns. How can I do this without changing the network weights.
Thanks in advance

 채택된 답변

Greg Heath
Greg Heath 2012년 1월 4일

0 개 추천

[I Ntst] = size(ptst) % Test Input
[O Ntst] = size(ttst) % Target
% Naive constant model
y00tst = repmat(mean(tst,2),1,Ntst);
MSE00tst = mse(ttst-y00tst)
% Neural Net model
ytst = sim(net,ptst);
MSEtst = mse(ttst-ytst)
R2tst = 1- MSEtst/MSE00tst
Hope this helps.
Greg

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by