Logistic Regression in Python – Step 1.) Import Libraries and Import Dataset

with No Comments

#Import Libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

#Import Dataset
dataset = pd.read_csv(‘Social_Network_Ads.csv’)
x = dataset.iloc[:,[2,3]].values
y =dataset.iloc[:,4].values

Leave a Reply