Add codes to compute floating-point output of svm