# Logistic Regression (Binary Classification)

Code: https://github.com/codebasics/py/blob/master/ML/7_logistic_reg/7_logistic_regression.ipynb

Exercise: Open above notebook from github and go to the end.

Logistic regression is used for classification problems in machine learning. This tutorial will show you how to use sklearn logisticregression class to solve binary classification problem to predict if a customer would buy a life insurance. At the end we have an interesting exercise for you to solve.