2014/1/2 Marco Ippolito <[email protected]>:
> pipeline = Pipeline([('tfidf', TfidfTransformer()), ('chi2',
> SelectKBest(chi2, k=1000)), ('nb', Multin\
> omialNB())])
>
> classif = SklearnClassifier(pipeline)
> print("Accuracy of MultinomialNaiveBayesClassifier with pipeline
> (chi2,nb)", accuracy(classif, test_feats))

You forgot to train this thing.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to