machine-learning – Implementing SVM classifier using Scikit-learn:

from sklearn import svm
X = [[1, 2], [3, 4]] #Training Samples
y = [1, 2] #Class labels
model = svm.SVC() #Making a support vector classifier model
model.fit(X, y) #Fitting the data

clf.predict([[2, 3]]) #After fitting, new data can be classified by using predict()

if you want to reproduce, please indicate the source:
machine-learning – Implementing SVM classifier using Scikit-learn: - CodeDay