Perceptron

Perceptron

Perceptron is a basic model for neural network and SVM(support vector machine). It is just a linear classification often used in the separated two-class data.
这里写图片描述

1. Primal problem

(i) Distance between a point and a hyperplane

图片描述

  • Since x0 is on the hyperplane, it satisfies wx0+b=0 (w2=1) .
    b=wx0
    .
  • Then project vector x1x0 on w , which gives the distance between x1 and hyperplane wx+b=0 ,
    w(x1x0)=wx1wx0=wx1+b
  • Note that if x1 is on the other side of the hyperplane, the distance will be in the form of
    w(x0x1)=wx0wx1=(wx1+b)

(ii) Perceptron model

Assume that we have a data set, and or . In addition, the data set can be separated by a hyperplane. Then we use the distances between misclassification data to the hyperplane as loss function.

(iii) Algorithm of perceptron

To minimize the loss function


stochastic gradient descent method is used.
Note that the derivatives of are

  • Suppose now the parameters are
  • Select a data which is misclassifized by hyperplane , then update parameters

(iv) Convergence of algorithm

If we denote and , the hyperplace can be rewritten as


Theorem: Let , and there exists a constant satisfies for all (since the data set are separated). Then the maximum steps to be used in the stochastic gradient descent satisfies

Proof:(1) Combining the updating of

and the separated information

,
we have

(2) Recall than in the updating form , the data are misclassifized by hyperplane , which says

Then

(3) Combining the two results from (1) and (2), we have

So

2. Dual form

We can use the dual form to eliminate the computations, which means using to represent .

In last section, we see the updating form of stochastic gradient descent is and . If we denote the number of updating each data in the algorithm as , we have

So we can rewrite the model as

We also use stochastic gradient descent method to update .

  • Denote now
  • Select a misclassifized data , which satisfies

    then update as
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值