-
-
Save amankharwal/46aae0114aabb005e2e41b581289d940 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.feature_extraction.text import TfidfVectorizer | |
from sklearn.pipeline import Pipeline | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.feature_extraction.text import TfidfTransformer | |
from sklearn.linear_model import SGDClassifier | |
pipeline_sgd = Pipeline([ | |
('vect', CountVectorizer()), | |
('tfidf', TfidfTransformer()), | |
('nb', SGDClassifier()),]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment