Код: Выделить всё
from sklearn.svm import SVC
clf = SVC(C=1, kernel = 'linear')
clf.fit(X, y)
Подробнее здесь: https://stackoverflow.com/questions/698 ... margin-svm
Код: Выделить всё
from sklearn.svm import SVC
clf = SVC(C=1, kernel = 'linear')
clf.fit(X, y)