jr_svm_script trains and tests models in for loop