摘要: import numpy as np from sklearn import svm X = np.array([[-1, -1], [-2, -1], [1, 1], [2, 1]]) y = np.array([1, 1, 2, 2]) clt = svm.SVC(probability = True) clt.fit(X, y) print clt.predict([[-0.8, -... 阅读全文
posted @ 2019-06-11 11:06 ahuo 阅读(5151) 评论(0) 推荐(0) 编辑