Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created April 27, 2020 05:24
Show Gist options
  • Save lakshay-arora/62a889cad384df9bbfb2f95ff336289d to your computer and use it in GitHub Desktop.
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