update classify_svm method using numpy.array