Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 6, 2021 06:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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