refactoring svm
first realization svm type classifier