clear;
clc;
n = 0.1;
x = [-1 -1; -1 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
% fill in the blanks
end
k=1;
for i=-1:0.05:1
for j=-1:0.05:1
x1(k,1) = i;
x1(k,2) = j;
k = k + 1;
end
end
y = x1*w' + b;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/133972.html
標籤:人工智能技術
