支持向量機

  In [5]:​ from sklearn import svm import numpy as np import matplotlib.pyplot as plt ​#準備訓練樣本 x=[[1,8],[3,20],[1,15],[3,35],[5,35],[4,40],[7,80],[6,49]] y=[1,1,-1,-1,1,-1,-1,1]   ##開始訓練 #clf=svm.SVC
相關文章
相關標籤/搜索