Created
May 21, 2017 15:20
-
-
Save Tathagatd96/835f2ba0e0d2cbea845c5d78f53f0a3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Performance on test set | |
twenty_test=fetch_20newsgroups(subset='test',categories=categories,shuffle=True,random_state=42) | |
doc_test=twenty_test.data | |
predicted=text_clf.predict(doc_test) | |
print "Classifier Accuracy:" | |
print(np.mean(predicted==twenty_test.target)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment