Function call for weighted samples SVM