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) #########################################################