Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

sklearn support vector machine

from sklearn import svm
X = [[0, 0], [2, 2]]
y = [0.5, 2.5]
regr = svm.SVR()
regr.fit(X, y)

regr.predict([[1, 1]])
Comment

PREVIOUS NEXT
Code Example
Python :: python remove all elemnts in list containing string 
Python :: how to execute bash commands in python script 
Python :: Python NumPy repeat Function Syntax 
Python :: python if any element in string 
Python :: python http request params 
Python :: urllib 
Python :: open word from python 
Python :: run django localhost server 
Python :: django set session variable 
Python :: catch error data with except python 
Python :: grouped bar chart matplotlib 
Python :: python aes encryption 
Python :: groupby and sort python 
Python :: discord.py reference 
Python :: download python 2.7 for windows 10 
Python :: python getattr 
Python :: jinja2 template import html with as 
Python :: showing specific columns pandas 
Python :: python read json file array 
Python :: isdigit python 
Python :: how to label points in scatter plot in python 
Python :: legend font size python matplotlib 
Python :: django response headers 
Python :: python random randint string 
Python :: python turtle triangle 
Python :: PackagesNotFoundError: The following packages are not available from current channels: 
Python :: how to download a .xlsx file from google colab 
Python :: kivy button disable 
Python :: tkinter button 
Python :: pandas legend placement 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =