Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/b98c26e83b64a6ce18684b57e8f0c39a to your computer and use it in GitHub Desktop.
Save Tathagatd96/b98c26e83b64a6ce18684b57e8f0c39a to your computer and use it in GitHub Desktop.
sklearn.datasets.load_files("C://Users/Tathagat Dasgupta/Desktop/ML Project/20news-18828")
categories=['alt.atheism','soc.religion.christian','comp.graphics','sci.med']
print "hello"
twenty_train=fetch_20newsgroups(subset='train',categories=categories,shuffle=True,random_state=42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment