Algorithm 3.
Training (model generation) stage | |
1. | Initialize w = 0 |
2. | Find w as solution of optimization problem min ∥w∥ subject to . |
where ξ’s are slack variables of optimization problem (in non-separable case). | |
Prediction (testing) stage | |
1. | Compute wTx |
2. | Predict y = sign(wTx) |