updates to SVM training