Skip to main content
. 2021 Jun 28;21(13):4412. doi: 10.3390/s21134412
Algorithm 1. Pseudocode for training a support vector machine
Require:X and y loaded with training labeled data, α0 or α partially trained SVM
1: C some value (10 for example)
2: repeat
3:  for all {xiyi}, {xiyi} do
4:   Optimize i and j
5:  end for
6: until no changes in α or other resource constraint criteria met
Ensure: Retain only the support vectors (i>0)