Skip to content

Instantly share code, notes, and snippets.

from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.linear_model import SGDClassifier
from sklearn.pipeline import Pipeline
from sklearn import metrics
newsgroups_train = fetch_20newsgroups(subset='train')
newsgroups_test = fetch_20newsgroups(subset='test')

Keybase proof

I hereby claim:

  • I am tanosaur on github.
  • I am tanosaur (https://keybase.io/tanosaur) on keybase.
  • I have a public key ASD77nPYC8C9_mVuW2jV1_kh47q63tPpo1JKygryAyNTpwo

To claim this, I am signing this object: