From 4400c705ed3f5607a40547b291064069c743ab29 Mon Sep 17 00:00:00 2001 From: Ayush Pandey <59275479+Ayush7-BIT@users.noreply.github.com> Date: Fri, 17 Jul 2020 13:58:36 +0530 Subject: [PATCH] Updated SVM_author_ID.py --- svm/svm_author_id.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svm/svm_author_id.py b/svm/svm_author_id.py index fda3f7fdb28..81581b5afaf 100644 --- a/svm/svm_author_id.py +++ b/svm/svm_author_id.py @@ -24,7 +24,13 @@ ######################################################### ### your code goes here ### - +from sklearn.svm import SVC +clf=SVC(kernel="linear") +clf.fit(features_train,labels_train) +SVC() +pred=svc.pred(feautures_test) +from sklearn.metrics import accuracy_score +acc=accuracy_score(pred,labels_test) #########################################################