Created
March 13, 2018 19:02
-
-
Save llSourcell/a05e3ff6572ebb6ba01b8a35057fffe0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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