clear;
clc;
N=0.1;
X=[; - 1-1-1 of 1, 1-1; 1, 1); % 4 sets of input x1, x2 (OR problem)
T=(1, 1; 1, 1]. % 4 output
W=2 * rand (1, 2) - 1;
B=2 * rand (1, 1) - 1;
EPOCH=100;
For k=1: EPOCH % or use 100 directly
% the fill in the blanks
End
k=1;
For I=- while 05:1
For j=- 1-0 05:1
The x1 (k, 1)=I;
The x1 (k, 2)=j;
K=k + 1;
End
End
Y=x1 * w '+ b;