Skip to content

Instantly share code, notes, and snippets.

@grohith327
Created June 7, 2018 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grohith327/a9f14b653deda27e0b4b014df09f1228 to your computer and use it in GitHub Desktop.
Save grohith327/a9f14b653deda27e0b4b014df09f1228 to your computer and use it in GitHub Desktop.
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
clf = SVC(kernel='linear')
clf.fit(x_train,y_train)
y_pred = clf.predict(x_test)
print(accuracy_score(y_test,y_pred))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment