Logistic Regression Explained with Code

Logistic Function Logistic regression is a generalized linear model, sharing many similarities with multiple linear regression. We define the logistic function (sigmoid) as: $$ g(z) = \frac{1}{1 + e^{-z}} $$ With $ z = \theta^T x $, the hypothesis becomes: $$ h_\theta(x) = \frac{1}{1 + e^{-\theta^T x}} $$ The graph of the logistic function is: ...

Posted on Sun, 07 Jun 2026 17:49:35 +0000 by bals28mjk

Implementing Linear Regression with Gradient Descent Variants

Gradient descent is widely adopted in modern machine learning inference due to its efficiency with large-scale datasets and high-dimensional feature spaces. Unlike closed-form solutions that become computationally prohibitive as data volume grows, gradient descent updates parameters iteratively using gradient computations on subsets or the enti ...

Posted on Sat, 09 May 2026 22:02:58 +0000 by mattkirkey