Data Science, Machine Learning, Support Vector Machine, Python.
However, there are constraints that we must respect. Remember our decision functions wᵀx₁ + b = 1 wᵀx₂ + b = -1 Therefore, the w vector has to be chosen to satisfy the following wᵀxᵢ + b ≥ 1 # For all the points in class 1 wᵀxᵢ + b ≤ -1 # For all the points in class -1 Then, we can express this