import numpy as np
X = np.array([[-1, -1], [-2, -1], [1, 1], [2, 1]])
y = np.array([-1, -1, 1, 1])
from sklearn.svm import SVC
clf = SVC()
clf.fit(X, y)
print(f'Number of support vectors in each class: {clf.n_support_}')
print(f'Classes: {clf.classes_}')