
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

testNN.m
load('trainData'); load('bpnNet'); Y = sim(bpn, trainData');
[X,I] = max(Y);
errorCount = 0; for i = 1 : length(targetData) if ceil(i/7) ~= I(i) errorCount = errorCount + 1; end end
percentageAccuracyOnTraining = (1-(errorCount/length(targetData))) * 100
%%%%%%%%%%%%%%%%%%%%%%%%%%
load('testData'); Y = sim(bpn, testData');
[X,I] = max(Y);
errorCount = 0; for i = 1 : length(targetData) if ceil(i/3) ~= I(i) errorCount = errorCount + 1; end end
percentageAccuracyOnTesting = (1-(errorCount/length(targetData))) * 100