Logistic Regression Steps: 1 to 4
This lesson will start to introduce the implementation steps (1-4) of logistic regression.
We'll cover the following...
1) Import libraries
The libraries used for this exercise are Pandas, Seaborn, Matplotlib, and Pyplot (a MATLAB-like plotting framework that combines Pyplot with NumPy), as well as Scikit-learn.
Press + to interact
#1. Import librariesimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsfrom sklearn.model_selection import train_test_splitfrom sklearn.linear_model import LogisticRegressionfrom sklearn.metrics import confusion_matrix, classification_report
Note: Codes of further steps won’t ...