Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Again - it's not a problem at all if you didnt understand this block of code - You should just know that some
- test data is being loaded where test examples are saved in test_data and test labels are saved in test_labels
- """
- newsgroups_test=fetch_20newsgroups(subset='test',categories=categories) #loading test data
- test_data=newsgroups_test.data #get test set examples
- test_labels=newsgroups_test.target #get test set labels
- print ("Number of Test Examples: ",len(test_data)) # Output : Number of Test Examples: 1502
- print ("Number of Test Labels: ",len(test_labels)) # Output : Number of Test Labels: 1502
Add Comment
Please, Sign In to add comment