Machine Learning Tutorial Python - 8: Logistic Regression (Binary Classification)

preview_player
Показать описание
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.
Usually there are two types of machine learning problems (1) Linear regression where prediction value is continuous (2) Classification where predicted value is categorical. Logistic regression is used for classification problems mainly.

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #LogisticRegression #sklearntutorials #scikitlearntutorials

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

Topics that are covered in this Video:
0:00 - Theory (Explain difference between logic regression and classification)
1:18 - What is logistic regression?
1:26 - Classification types (Binary vs multiclass classification)
1:53 - Explanation of logistic regression using the example of if person will buy insurance based on his age
5:38 - Sigmoid or Logit function
8:18 - Coding (for coding we are using an example of if a person will buy insurance or not based on his age)
14:36 - sklearn predict_proba() function
15:49 - Exercise (Solve a problem of predicting employee retention based on salary, distance to work, promotion, department etc)

Next Video:

Populor Playlist:

Tools and Libraries:
Scikit learn tutorials
Sklearn tutorials
Machine learning with scikit learn tutorials
Machine learning with sklearn tutorials

#️⃣ Social Media #️⃣
Рекомендации по теме
Комментарии
Автор

I have never seen any other video explaining the concepts of machine learning so clearly. Keep up the great work..!!

interesting_vdos
Автор

Finally i got perfect trainer for ML, your skills are excellence sir, we are very proud of you sir.

sidduhedaginal
Автор

One of the few videos that clearly shows the training data that the model is attempting to fit to. Thank you.

pamp
Автор

Best course you can get for learning ML is this only.
Explanation is super awesome.
Actually most of the books and courses shows you complex looking mathematical equations but this guy made all that easy for us.

ansh
Автор

Perfect explanation with proper examples. Great job.

bhawin
Автор

Perfectly balanced video. It forces anyone to continue to watch other videos of this series. Very well explained in simple language. 👌

MoreBalaji
Автор

Sir, I know so surely that I can bank on your data science and python videos when I need to gain an in-depth understanding. Your content gives me the hope and clarity that I needed. God bless you and your undying passion to make such useful content for us. Thank you so much for all your hard-work sir!!! :)

Sarah-stjp
Автор

Actually, I fine tuned my model and was able to achieve an accuracy of 1.0. Thankyou so much sir. This might just be the best channel I have seen.🥳

PollyMwangi-cpjn
Автор

For the first time after so many courses, videos, whitepapers, github, kaggle, exercises, wiki pages I am genuinely enjoying Machine Learning and I am doing all the coding and exercises by myself obviously after learning and understanding it all. Thanks a lot!!!

riyamitra
Автор

i'm Not afraid to learn things with complicated term anymore! this teacher is the best at explanation.

zerostudy
Автор

Why didn't you plot the sigmoid curve but only showed the scatter plot?

businnovate
Автор

On first attempt, i considered 'left' as dependent variable and everything else including salary and department as independent variable, got 77% score of accuracy. Thanks for the wonderful video.

manusingh
Автор

78 percent accuracy. I do all your exercises but in this I learned a lot. Thank you sir for such a great series @codebasics

piyushjha
Автор

You are the best teacher! I love the exercises at the end of each topic, which strengthens our understanding of what we learnt!!! Thank you so much! :)

shivangitomar
Автор

You make people feel so welcomed to data field with your teaching skills. You are always the best.

eenksct
Автор

Thanks a lot for the lucid explanation.
In the exercise, I got an accuracy of 77.2% in my model prediction.

adityabikramarandhara
Автор

bro you are best .. tried to swirl thru other online videos and then I end up watching your videos and I understand better .

sunnyveerpratapsingh
Автор

I love your tutorials. They're perfectly paced, with right amount of context and explanation, great examples, and patient but efficient delivery. I hope you continue to produce more. Subscribed here and also Liked all of the videos I've found so far from you. Best.

flyingsalmon
Автор

Dear Sir
What a beautiful datasheet you have provided for practice with this video.
Spent more than two days to play with it.
Playing with the datasheet opened another dimension of the learning curve.
Thank you very much for providing relevant exercises like this as a challenge!

nilupulperera
Автор

Thank you very much for the videos on ML, AI, Python, etc. They help me learn a lot. Your explanations are clear and well understood. Thanks.

GeorgeTrialonis