Professional Documents
Culture Documents
ML Final Lab
ML Final Lab
X = [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]
y = [1, 1, 1, 2, 2, 2]
clf = svm.SVC(kernel='linear')
clf.fit(X_train, y_train)
coef = clf.coef_
intercept = clf.intercept_
print("Hyperplane equation:")
output :
Hyperplane equation: