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
Implementing Linear Regression with PyTorch from Scratch
Why Move to Code
The previous discussion focused on the mathematical modeling behind neural networks. However, theory alone is insufficient without practical implementation. This article shifts the perspective to a code-first approach, translating mathematical concepts into executable PyTorch scripts.
Implementation Strategy
Following a style s ...
Posted on Sun, 31 May 2026 23:41:57 +0000 by kavisiegel
Linear Regression and Its Regularization Techniques
Regression is a supervised learning method that models the relationship between independant variables (features X) and a dependent variable (target Y). The goal is to learn a function that maps features to a continuous output.
A linear regression model assumes a linear relationship:
h(x) = θ₀ + θ₁x₁ + θ₂x₂ + ... + θₙxₙ = θᵀx
The objective is t ...
Posted on Wed, 13 May 2026 06:48:11 +0000 by stpra123
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