def trainSVM(features, Cparam):
 [X, Y] = listOfFeatures2Matrix(features)
 svm = sklearn.svm.SVC(C=Cparam, kernel='linear', probability=True)
 svm.fit(X, Y)
 return svm

def trainSVM ( features , Cparam ) : [ X , Y ] = listOfFeatures2Matrix ( features ) svm = sklearn . svm . SVC ( C = Cparam , kernel = 'linear' , probability = True ) svm . fit ( X , Y ) return svm
train a multi-class probabilitistic svm classifier .