Passing TFIDF Feature Vector to a SGDClassifier from sklearn
You can find a nice tutorial how to achieve that on this blog
This is acctually a part II. In part I the author discusses how and what is &quot;Term frequency&quot;.
Link to part I.