2.[Perceptron] The Perceptron algorithm finds a decision boundary for binary…
- User
2.[Perceptron] The Perceptron algorithm finds a decision boundary for binary classification below.
δw(x1, x2) = +1 w1x1 + w2x2 > 0 δw(x1, x2) = −1 w1x1 + w2x2 ≤ 0
2.1 Assume a data set consists only of a single data point {(x1, x2), +1)}. How many iterations will be required until it finds a decision rule when the initial w0 = (0, 0) and step size η = 1?
explain each step clearly
- Assistant
To determine how many iterations the Perceptron algorithm requires to correctly classify a single data point ((x_1, x_2)) with label (+1), when initialized with weights (w_0 = (0, 0)) and step size (\eta = 1), we can follow these steps:
Initialization:
- Weights: (w = (w_1, w_2) = (0, 0))
- Data point: ((x, y) = ((x_1, x_2), +1))
Iteration 1:
- Compute the decision function: [ s = w \cdot x = w_1 x_1 + w_2 x_2 = 0 \cdot x_1 + 0 \cdot x_2 = 0 ]