Question: 3 . 1 ( 2 0 points ) Perceptron Algorithm - Deterministic Iteration In this section, we will apply the perceptron learning algorithm to solve
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 for a feature vector x xx The decision rule of the perceptron model is defined as:
if wT x b
f x; w b otherwise.
where w w w is the weight vector, and b is the bias scalar. Given a training dataset Straining xi yi i n we define the training error etraining as:
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 wb If we represent data points in training set Straining as matrices X xxxnT and Y yyynT 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
