If it is wrong, update \[\mathbf w \gets \mathbf w + \eta \cdot y_i \cdot \mathbf x_i, \qquad
b \gets b + \eta \cdot y_i\] where \(\eta>0\) is a fixed learning rate (often \(\eta = 1\)).
Repeat passes (epochs) until all points are classified correctly or a preset iteration budget is exhausted.