split up SVM into build/train/test blocks