Guest User

Untitled

a guest
Sep 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. """
  2. Again - it's not a problem at all if you didnt understand this block of code - You should just know that some
  3. test data is being loaded where test examples are saved in test_data and test labels are saved in test_labels
  4. """
  5. newsgroups_test=fetch_20newsgroups(subset='test',categories=categories) #loading test data
  6. test_data=newsgroups_test.data #get test set examples
  7. test_labels=newsgroups_test.target #get test set labels
  8.  
  9. print ("Number of Test Examples: ",len(test_data)) # Output : Number of Test Examples: 1502
  10. print ("Number of Test Labels: ",len(test_labels)) # Output : Number of Test Labels: 1502
Add Comment
Please, Sign In to add comment