added svm and predicted labels to output