y_test = [[1], [2], [3]]
classifier.fit(X_train, y_train)
predicted = classifier.predict(X_test)
print(accuracy_score(y_test, predicted))
Python : How to find Accuracy Result in SVM Text Classifier Algorithm for Multilabel Class