Data Science, Machine Learning, Support Vector Machine, Python.
(wᵀx₂+ b) = 1 — (-1) => wᵀx₁ + b — wᵀx₂ — b = 1 + 1 => wᵀx₁ — wᵀx₂ = 2 => wᵀ(x₁ —x₂) = 2 So, we can now substitute the expression we just found in the previous equation about 2ɣ. Which will lead us to an expression of the margin ɣ, as follows: 2ɣ = 2/||w|| # Divide both sides by 2 => ɣ = 1/||w||