Search
 
SCRIPT & CODE EXAMPLE
 

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.]])
Comment

PREVIOUS NEXT
Code Example
Python :: semicolons in python 
Python :: how to show webcam in opencv 
Python :: clear all python cache 
Python :: python finite difference approximation backward difference 
Python :: python maths max value capped at x 
Python :: replace error with nan pandas 
Python :: Violin Plots in Seaborn 
Python :: find the determinant of a matrix in python 
Python :: make first row column names pandas 
Python :: createview 
Python :: click button in selenium python 
Python :: python replace part in large file 
Python :: how to convert an image to matrix in python 
Python :: pandas repeat rows n times 
Python :: python time in nanoseconds 
Python :: python extract thefile name from relative path 
Python :: add role discord .py 
Python :: python split sentence into words 
Python :: how to find the text inside button in tkinter 
Python :: remove blanks from list python 
Python :: python list all files in directory 
Python :: set password on a zip file in python 
Python :: add background image in django uploaded file 
Python :: Local to ISO 8601 with TimeZone information (Python 3): 
Python :: pip install vlc 
Python :: flask render error template 
Python :: puissance python 
Python :: display Surface quit 
Python :: python find first duplicate numbers 
Python :: print hello world in python 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =