Created
May 24, 2017 10:10
-
-
Save Tathagatd96/592836736210f3dabfec9266f1c14d60 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 | |
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