Skip to content

Instantly share code, notes, and snippets.

@llSourcell
Created March 13, 2018 19:02
Show Gist options
  • Select an option

  • Save llSourcell/a05e3ff6572ebb6ba01b8a35057fffe0 to your computer and use it in GitHub Desktop.

Select an option

Save llSourcell/a05e3ff6572ebb6ba01b8a35057fffe0 to your computer and use it in GitHub Desktop.
from sklearn import svm
from sklearn import datasets
#ML Model
clf = svm.SVC()
#Load Data
iris = datasets.load_iris()
X, y = iris.data, iris.target
#Train model on data
clf.fit(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment