Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created April 27, 2020 05:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lakshay-arora/62a889cad384df9bbfb2f95ff336289d to your computer and use it in GitHub Desktop.
# importing required libraries
import pandas as pd
from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS, TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment