Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/4a4714705eff7492c6a5fd509b63a757 to your computer and use it in GitHub Desktop.
Save Tathagatd96/4a4714705eff7492c6a5fd509b63a757 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,CharNGramAnalyzer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.linear_model import SGDClassifier
from sklearn.svm.sparse import LinearSVC
import numpy as np
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment