Logistic Regression in Python - Machine Learning Basics

Опубликовано: 02 July 2026
на канале: Adarsh Menon
21,794
362

This video explains the step by step process of implementing the logistic regression algorithm from scratch using python, for beginners. At the end I also compare it with an existing model using sklearn. First off we define logistic regression and what the logistic model exactly is. Then we define a loss function and use the gradient descent algorithm to estimate the weights. Finally we implement the algorithm from scratch using python and and also implement it using sklearn and compare the results.

The Google Colab with Explanation & Code:
https://colab.research.google.com/dri...

Written version in Medium:
  / logistic-regression-explained-and-implemen...  

To learn more about Logistic Regression check out my references:
Artificial Intelligence, a modern approach - pg 726, 727
https://machinelearningmastery.com/lo...
https://towardsdatascience.com/logit-...
https://en.wikipedia.org/wiki/Logisti...

Having trouble ? Need help ? Connect with me !
Email: [email protected]
Twitter :   / adarsh_menon_  
LinkedIn:   / adarsh-menon-739573146  
Github : https://github.com/adarsh1021

#machinelearning #datascience #regression #gradientdescent