Skip to content

Instantly share code, notes, and snippets.

@FeryET
Created August 26, 2020 10:58
Show Gist options
  • Save FeryET/61d35342999f447acb92b0417c1974de to your computer and use it in GitHub Desktop.
Save FeryET/61d35342999f447acb92b0417c1974de to your computer and use it in GitHub Desktop.
labels = ["rec.autos", "rec.motorcycles", "rec.sport.baseball", "rec.sport.hockey"]
raw_docs, y = fetch_20newsgroups(subset='all', return_X_y=True, categories=labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment