(My notes)Perception Algorithm

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.

3.in higher dimension

linear boundary in 3 dimensions

linear boundary in n dimensions

4.perceptron

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

step function(one of the step functions)

now the perceptron can be built as follows.

It can be simplified by the following.

  • There are two types of perceptron:

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.

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.

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

7.pseudocode for the perceptron 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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值