created end to end script for SVM