Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Pipeline = Pipeline([
  2. (‘vect’, CountVectorizer()),
  3. (‘tfidf’,Tfidftransformer()),
  4. (‘clf’,SGDClassifier()),
  5. ])
  6.  
  7. Predicted= pipeline.fit(X_train).predict(X_train)
  8. #Evaluate all steps on Test
  9. Predicted = pipeline.predict(X_test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement