2013/4/13 Philipp Singer <[email protected]>:
> Yep, If I understand you correctly, you just need to call the transform
> method on your new data using the fitted TfidfVectorizer.

See the 20newsgroups classification example for how to do this:
http://scikit-learn.org/stable/auto_examples/document_classification_20newsgroups.html

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to