Revise SVM training script - trying to improve the performance and accuracy