The Hebb net Step 0. Initialize all weights =0(=1tom) Step 1. For each input training record(s)it's target output (t), do steps 2-4 Step 2. Set activations for all input units Step 3. Set activation for the output unit Step 4. Adjust the weights and the bias W(new)=Wi(old)+Xy(i=1 to n)(note: Aw;=X; y) A(new)=8(old)+y The bias(the a)adjusted like a weight from a unit whose output signal is always
11 The Hebb Net • Step 0. Initialize all weights: – wi =0 (i = 1 to n). • Step 1. For each input training record (s) it’s target output (t), do steps 2-4. – Step 2. Set activations for all input units: – Step 3. Set activation for the output unit: – Step 4. Adjust the weights and the bias: • wi (new) = wi (old) + xi y (i = 1 to n) (note: wi = xi y) • θ(new) = θ(old) + y . • The bias (the θ) adjusted like a weight from a unit whose output signal is always 1
A Hebb Net Example 12
12 A Hebb Net Example
The data set Attributes HS IndeX: Drop, Rise] Trading. Vol: (Small, Medium, Large] DJIA: Drop, Rise Class Label Buy_ Sell: Buy, Selly
13 The Data Set • Attributes – HS_Index: {Drop, Rise} – Trading_Vol: {Small, Medium, Large} – DJIA: {Drop, Rise} • Class Label – Buy_Sell: {Buy, Sell}
The data set HS_Index Trading_Vol DJIA Buy_ Sell Drop Large Drop Buy Rise Rise Sel 12345678 Large Rise Medium Drop Bt Drop Small Drop Sel Rise Small Drop Sel Rise Large Drop Buy Rise Small Rise Sel Drop Large Rise Sel 14
14 The Data Set HS_Index Trading_Vol DJIA Buy_Sell 1 Drop Large Drop Buy 2 Rise Large Rise Sell 3 Rise Medium Drop Buy 4 Drop Small Drop Sell 5 Rise Small Drop Sell 6 Rise Large Drop Buy 7 Rise Small Rise Sell 8 Drop Large Rise Sell
Transformation Bias Input Features HIS=Drop HS Index Drop: (-1, 1] HS Index Rise: ( -1, 11 Trading Vol Small: (-1, 11 HIS=Rise Trading_ Vol_Medium: (-1, 11 Trading Vol Large: ( -1, 1] B/S DJIA Drop: (-1, 11 DJIA Rise: -1, 11 Bias: (11 DJIA=Drop Output Feature Buy Sell: ( -1 DJIA=Rise
15 Transformation • Input Features – HS_Index_Drop: {-1, 1} – HS_Index_Rise: {-1, 1} – Trading_Vol_Small: {-1, 1} – Trading_Vol_Medium: {-1, 1} – Trading_Vol_Large: {-1, 1} – DJIA_Drop: {-1, 1} – DJIA_Rise: {-1, 1} – Bias: {1} • Output Feature – Buy_Sell: {-1, 1} HIS=Drop HIS=Rise Bias DJIA=Drop DJIA=Rise B/S