1.brief introduction

  • is one of the Classification Algorithms
  • is the basis for neural networks

2.linear boundary

  • Find a line to separate tha data.
  • The points over the line can be accepted(as blue),while those under the line can be rejected(as red).
  • Our goal is to have y-hat resembling y as closely as possible.

(My notes)Perception Algorithm

3.in higher dimension

linear boundary in 3 dimensions

(My notes)Perception Algorithm

linear boundary in n dimensions

(My notes)Perception Algorithm

4.perceptron

  • It's the building block of neural networks.It's just an encoding of our equation into a small graph.

(My notes)Perception Algorithm

step function(one of the step functions)

(My notes)Perception Algorithm

now the perceptron can be built as follows.

(My notes)Perception Algorithm

It can be simplified by the following.

(My notes)Perception Algorithm

  • There are two types of perceptron:

(My notes)Perception Algorithm

The one on the left has a bias unit coming from an input node with a value of one,and the one on the right has the bias inside the node.

5.AND Perceptron

Some logical operators can be represented as perceptrons,such as AND, OR, NOT and XOR.

6.what the computer does

It start at a random place by picking a random linear equation,then move it to try to get better.

Here is a way to move the line.

  • If the red point over the line is misclassified,we can adjust the line like this.

(My notes)Perception Algorithm

But we don't want to move the line drasticlly since other points are minclassified accidentally.We introduce the learning rate to let the line make a small move towards the wrong red point.

(My notes)Perception Algorithm

  • If the blue point under the line is misclassified,we can adjust the line like this.

(My notes)Perception Algorithm

7.pseudocode for the perceptron algorithm

(My notes)Perception Algorithm

Repeat the step until we get no errors or until we have a number of errors that is small or simply do this step a thousand times and stop.

相关文章:

  • 2021-12-27
  • 2021-08-31
  • 2022-02-10
  • 2021-05-29
  • 2021-07-16
  • 2021-11-08
  • 2021-11-10
  • 2021-08-27
猜你喜欢
  • 2021-05-07
  • 2022-12-23
  • 2021-12-03
  • 2021-08-27
  • 2021-07-22
  • 2021-10-27
  • 2021-09-06
相关资源
相似解决方案