Created
May 23, 2017 15:52
-
-
Save Tathagatd96/4a4714705eff7492c6a5fd509b63a757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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