Tried to add logic to get train and test error for svm, but couldn't get predict to work. Might be worth using scikit in future.