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!

Build a Logistic Regression Model from Scratch in Python ๐Ÿงฎ
Harry Connor AI
3.4K views โ€ข Aug 1, 2025
Build a Logistic Regression Model from Scratch in Python ๐Ÿงฎ

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

Video Information

Views

3.4K

Likes

212

Duration

20:06

Published

Aug 1, 2025

User Reviews

4.6
(3)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now