随笔分类 - BI
摘要://hebbian_learning2.m 1 % Examples 2 % -------- 3 % p1 = [1;1;-1;1]; 4 % t1 = 0; 5 % p2 = [1;-1;1;1]; 6 % t2 = 0; 7 % p3 = [-1;-1;-1;1] 8 % t3 = 1; 9 % w1 = hebbian_learning2(p1,t1,p2,t2,p3,t3)10 % t1 = 0;11 % t2 = 1;12 % t3 = 0;13 % w2 = hebbian_learning2(p1,t1,p2,t2,p3,t3...
阅读全文
摘要:1 % Examples 2 % -------- 3 % p1 = [-1;1;-1]; 4 % t1 = -1; 5 % p2 = [1;1;-1]; 6 % t2 = 1; 7 % w = hebbian_learning(p1,t1,p2,t2) 8 function w = hebbian_learning(p1,t1,p2,t2) 9 % Author:Yao H. Wang10 11 % hebbian_learning Summary of this function goes here12 % Detailed explanation...
阅读全文
摘要:% Examples
% --------
% lhs = [-1;1;-1];
% rhs = [1;1;-1];
% [w,b] = perceptron(lhs,rhs)
function [w,b] = perceptron(lhs,rhs)
% Author:Yao H. Wang % perceptron Summary of this function goes here
% Detailed explanation goes here
% w为要学习获得的权值。
% b为偏移量。
% flag用来判断两次学习之后权值是否改变,不改变...
阅读全文
浙公网安备 33010602011771号