clf = svm.SVC(kernel='rbf', gamma=0.7, C=1.0).fit(X_train, y_train)
y_predicted = clf.predict(X_test)
print('Classification report for %s' % clf)
print() 
print(metrics.classification_report(y_test, y_predicted))
print() 
print('Confusion matrix')
print(metrics.confusion_matrix(y_test, y_predicted))
How to calculate precision, recall and F-score with libSVM in python