📜  scikit learn svm - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:34.870000             🧑  作者: Mango

代码示例1
from sklearn import svm
X = [[0, 0], [1, 1]]
y = [0, 1]
clf = svm.SVC()
clf.fit(X, y)
clf.predict([[2., 2.]])