- Les bases
- Modules standards
- Modules non standards
from sklearn import datasets from sklearn import svm iris = datasets.load_iris() svm.SVC(kernel = 'rbf') mdl.fit(iris.data, iris.target) prediction = mdl.predict(iris.data)
from sklearn import datasets from sklearn import svm iris = datasets.load_iris() svm.NuSVC(nu = 0.5, kernel = 'rbf') mdl.fit(iris.data, iris.target) prediction = mdl.predict(iris.data)
from sklearn import datasets from sklearn import svm diabetes = datasets.load_diabetes() svm.SVR(kernel = 'rbf') mdl.fit(diabetes.data, diabetes.target) prediction = mdl.predict(diabetes.data)