Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 6, 2021 06:58
Show Gist options
  • Save amankharwal/c71397c55b73e242b4ec5c67678711cc to your computer and use it in GitHub Desktop.
Save amankharwal/c71397c55b73e242b4ec5c67678711cc to your computer and use it in GitHub Desktop.
from sklearn.datasets import fetch_20newsgroups_vectorized
from sklearn.naive_bayes import MultinomialNB
trainingSet = fetch_20newsgroups_vectorized(subset="train")
testSet = fetch_20newsgroups_vectorized(subset="test")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment