refactoring svm param setup.