Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
train, test = train_test_split(final_dataset, random_state=42, test_size=0.33, shuffle=True)
X_train = train.text
X_test = test.text
LogReg_pipeline = Pipeline([
('tfidf', TfidfVectorizer(sublinear_tf=True, min_df=5, norm='l2', encoding='latin-1', ngram_range=(1, 2), stop_words='english')),
('clf',LogisticRegression(solver='sag'),),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.