Logistic Regression From Scratch in Python

Machine Learning From Scratch: Part 5

Suraj Verma
Towards Data Science
9 min readApr 8, 2021

--

Image by Author

In this article, we are going to implement the most commonly used Classification algorithm called the Logistic Regression. First, we will understand the Sigmoid function, Hypothesis function, Decision Boundary, the Log Loss function and code them alongside.

--

--