#3. Logistic Regression Model Building

Опубликовано: 06 Октябрь 2024
на канале: Data Science Lovers
3,622
90

In this video, we have created a simple Logistic Regression mode with Python.

Aim : Creating a model to predict whether a person will buy the insurance or not.

Logistic Regression - To solve classification problems.
Predicted Value (Y) is categorical / discrete.
Binary Classification - It has outcome as Yes/No or True/False.
Multiclass Classification - It has multiple categories for outcome.
In binary classification, the outcome is either 0 or 1 (Between 0-0.5 = 0 : Between 0.5-1 =1 ).
Sigmoid - It is a mathematical function having a charactersitics S-shaped curve or Sigmoid curve. This curve exists between 0 and 1.
It is especially used for models where we have to predict the 'Probability' as an output, because the probability exists between 0 and 1. It converts the input into range 0 to 1.

Step 1 - Importing Necessary Libraries
Step 2 - Importing the data-set
Drawing a Scatter plot to see the distribution of data-points
Step 3 - Training the model
Step 4 - Start Making Predictions
Checking the score of the model

----------------------------------------------------------

Download dataset used in this video :
https://drive.google.com/file/d/1t_0e...
.......................................................................
Get - Data Analyst Self Study Material ( Rs.450 ) - https://rzp.io/l/dslstudymaterial
.......................................................................
Get - Python Pandas Notes ( Rs.99 ) - https://rzp.io/l/pandas-notes
.......................................................................
Contact Mail Id : [email protected]

.......................................................................

You can check our other videos :
Multiple Linear Regression Model :    • #2. Multiple Linear Regression Model ...  
Simple Linear Regression Model :    • #1. Create Machine Learning Model || ...  

Data Analytics Projects:
Project 7 -    • Project - 7 | Data Analysis with Pyth...  
Project 6 -    • Project - 6 | Data Analysis with Pyth...  
Project 5 -    • Project - 5 | Data Analysis with Pyth...  
Project 4 -    • Project - 4 | Data Analysis with Pyth...  
Project 3 -    • Project - 3 | Data Analysis with Pyth...  
Project 2 -    • Project - 2 | Data Analysis with Pyth...  
Project 1 -    • Project - 1 | Data Analysis with Pyth...  



#python #machinelearning #datascience