add svm training, predicting