Fixes in svm model training scripts