Perceptron

Steps

  1. For d=2 dimensional data,
    1. W = (w0,w1,w2) - (d+1) dimension
    2. X = (x0,x1,x2) - (d+1) dimension
    3. Here x0 is always 1
  2. Now calculation y^=w0+w1x1+w2x2
    1. if y^>0, then upper side
    2. else, lower side
  3. Update:
    1. For all incorrectly classified ones:
  4. wnew=wnew+ηdx
    1. d = 1, if it needs to be on upper side
    2. d = 0, if it needs to be on lower side

Related Notes