Question: 3 . 1 ( 2 0 points ) Perceptron Algorithm - Deterministic Iteration In this section, we will apply the perceptron learning algorithm to solve

3.1(20 points) Perceptron Algorithm - Deterministic Iteration
In this section, we will apply the perceptron learning algorithm to solve the same binary classification problem as logistic regression above: We need to predict a binary label y in {1,1} for a feature vector x =[x0,x1]. The decision rule of the perceptron model is defined as:
(1, if wT x + b >=0,
f (x; w, b)=1, otherwise. (2)
where w =[w0, w1] is the weight vector, and b is the bias scalar. Given a training dataset Straining ={(xi, yi)}, i =1,..., n}, we define the training error etraining as:
1 Xn
etraining = n
and the test error etest on the test set Stest can be defined in the same way. In the perceptron algorithm, we aim to directly minimize the training error etraining to obtain the optimal parameters w,b. If we represent data points in training set Straining as matrices X =[x1,x2,...,xn]T and Y =[y1,y2,...,yn]T, the perceptron algorithm is shown as below:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!