Learn practical skills, build real-world projects, and advance your career

Logisitic Regression Binary Classification

import matplotlib.pyplot as plt
import pandas as pd
from sklearn.linear_model import LogisticRegression

<frozen importlib._bootstrap>:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
df=pd.read_csv("G:\\Machine Learning\\Logistic Regression\\insurance_data.csv")
df
df.shape
(27, 2)
plt.xlabel("Age")
plt.ylabel("Insurance Bought")
plt.plot(df.age,df.bought_insurance)
[<matplotlib.lines.Line2D at 0x1d241574970>]
Notebook Image