svm classification forloop