Build a Logistic Regression Model from Scratch in Python ๐งฎ
Discover how to implement logistic regression in Python using only NumPy and basic math. Perfect for understanding the fundamentals without relying on machine learning libraries!

Harry Connor AI
3.4K views โข Aug 1, 2025

About this video
Learn how to implement a Logistic Regression model in Python using just math and NumPy (no machine learning libraries like Scikit-Learn). Iโll walk through the core math behind logistic regression, including the sigmoid function, decision boundaries, and the cost function, and then show how to turn those equations into code.
This is Episode 2 of my Machine Learning From Scratch series, where Iโm building ML algorithms from the ground up, step-by-step to truly understand how they work under the hood.
๐บ Watch the Playlist Here: https://www.youtube.com/playlist?list=PLh6JMkwECi5HXVJ58ue58jJvL599NFYja
๐ป Full Code on GitHub: https://github.com/harryconnor/Machine-Learning-From-Scratch
TIMESTAMPS:
00:00 - Introduction
00:21 - PART 1: The Math
09:50 - PART 2: Coding it up
#machinelearning #python
This is Episode 2 of my Machine Learning From Scratch series, where Iโm building ML algorithms from the ground up, step-by-step to truly understand how they work under the hood.
๐บ Watch the Playlist Here: https://www.youtube.com/playlist?list=PLh6JMkwECi5HXVJ58ue58jJvL599NFYja
๐ป Full Code on GitHub: https://github.com/harryconnor/Machine-Learning-From-Scratch
TIMESTAMPS:
00:00 - Introduction
00:21 - PART 1: The Math
09:50 - PART 2: Coding it up
#machinelearning #python
Video Information
Views
3.4K
Likes
212
Duration
20:06
Published
Aug 1, 2025
User Reviews
4.6
(3) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now