Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/592836736210f3dabfec9266f1c14d60 to your computer and use it in GitHub Desktop.
Save Tathagatd96/592836736210f3dabfec9266f1c14d60 to your computer and use it in GitHub Desktop.
from sklearn.datasets import fetch_20newsgroups
import sklearn.datasets
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.linear_model import SGDClassifier
import numpy as np
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment