Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn svm

from sklearn import svm
X = [[0, 0], [1, 1]]
y = [0, 1]
clf = svm.SVC()
clf.fit(X, y)
clf.predict([[2., 2.]])
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #svm
ADD COMMENT
Topic
Name
1+7 =