from sklearn.svm import SVC clf = SVC(kernel='linear') clf.fit(X, y). To predict the class of new dataset prediction = clf.predict([[0,6]]).
確定! 回上一頁