- #1
lkh1986
- 99
- 0
Homework Statement
P = [data(1:65,11:100) data(1:65,411:500)]; % Input, all together 180 data set, 65 dimension
T = [ones(1,90) zeros(1,90);
zeros(1,90) ones(1,90)]; % Actual output, first 90 data set belong to class I and the next 90 belong to class II
net = newrb(P,T); % Train networkPnew = [data(1:65,1:10) data(1:65,401:410)]; % Data set for testing, 20 data set, first 10 belong to class I, next 10 belong to class II
Y = sim(net,Pnew);
Homework Equations
The Attempt at a Solution
The desired output, Y should be
[1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0;
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1];
However, all I get is Y =
[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1;
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ];
Hm, anything wrong with the code? Thanks.