Loading...
Classify data points using a linear decision boundary.
Given weights w and bias b, classify each point x using: f(x)=sign(w⋅x+b)
where sign(z)=+1 if z≥0, and −1 if z<0.
Return a list of predictions (+1 or −1).
X = [[1, 2], [-1, -2], [2, 0]] w = [1, 1] b = 0
[1, -1, 1]