Fundamentals of Supervised Learning: Linear Regression and Gradient Descent

Introduction to Machine LearningMachine learning is the discipline focused on enabling systems to learn from data rather than following explicit, rule-based programming. Algorithms analyze datasets to identify patterns and make decisions with minimal human intervention. The field is broadly categorized into supervised and unsupervised learning. ...

Posted on Tue, 14 Jul 2026 17:24:16 +0000 by smilepak

Implementing Linear Regression with TensorFlow (v1 Compatibility)

Ensure Matplotlib renders inline in a Jupyter notebook. Import NumPy and TensorFlow, using compatibility mode for v1 placeholders. Disable TensorFlow v2 behaviors. %matplotlib inline import numpy as np import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (14, 8) ...

Posted on Tue, 30 Jun 2026 17:02:00 +0000 by Mikedean

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