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