Machine Learning Building Blocks: Logistic Regression

Logistic Regression from scratch with NumPy.

Photo by National Cancer Institute on Unsplash

Preamble

Introduction

Logistic Function

Making Prediction

Logistic Loss

Loss function for logistic regression.

Intermezzo

Calculating the Gradient

Putting it all together

Extending Logistic Regression

BBC Data Scientist