<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Prem Chand</title><link>https://prem-chand.github.io/posts/</link><description>Recent content in Posts on Prem Chand</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 17 Jan 2026 10:00:00 +0000</lastBuildDate><atom:link href="https://prem-chand.github.io/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Foundations of Convolution: The Building Blocks of CNNs</title><link>https://prem-chand.github.io/posts/foundations-of-convolution/</link><pubDate>Sat, 17 Jan 2026 10:00:00 +0000</pubDate><guid>https://prem-chand.github.io/posts/foundations-of-convolution/</guid><description>&lt;p&gt;Convolutional Neural Networks (CNNs) have revolutionized computer vision, but their power comes from a simple mathematical operation: &lt;strong&gt;convolution&lt;/strong&gt;. In this post, we&amp;rsquo;ll build a solid understanding of the foundations that make CNNs work, from the mathematical definition to the key properties that make them so effective for image processing.&lt;/p&gt;
&lt;h2 id="what-is-discrete-convolution"&gt;What is Discrete Convolution?&lt;/h2&gt;
&lt;p&gt;At its core, convolution is a mathematical operation that combines two functions to produce a third. In the context of deep learning, we work with &lt;strong&gt;discrete convolution&lt;/strong&gt; since we&amp;rsquo;re dealing with digital images (discrete pixel values).&lt;/p&gt;</description></item><item><title>Model Predictive Control for Quadruped Locomotion</title><link>https://prem-chand.github.io/posts/mpc-quadruped/</link><pubDate>Sun, 01 Jun 2025 10:00:00 +0000</pubDate><guid>https://prem-chand.github.io/posts/mpc-quadruped/</guid><description>&lt;p&gt;Quadruped locomotion looks effortless in animals. In robots, the control problem is one of &lt;strong&gt;negotiating with physics&lt;/strong&gt;: the center of mass cannot be commanded directly—it can only be influenced through ground reaction forces at the feet, which can only push, never pull. This is a practical guide to how that problem is solved.&lt;/p&gt;
&lt;h2 id="prerequisites"&gt;Prerequisites&lt;/h2&gt;
&lt;p&gt;This post assumes familiarity with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Python and NumPy&lt;/li&gt;
&lt;li&gt;Basic rigid body dynamics (forces, torques, inertia)&lt;/li&gt;
&lt;li&gt;Jacobians for robot kinematics&lt;/li&gt;
&lt;li&gt;A physics simulator (MuJoCo preferred, but not required)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;No prior experience with MPC or legged robots is assumed.&lt;/p&gt;</description></item><item><title>Primal-Dual Predictor-Corrector Interior Point Method for Batched Quadratic Programming</title><link>https://prem-chand.github.io/posts/qp-interior-point/</link><pubDate>Sun, 23 Mar 2025 10:00:00 +0000</pubDate><guid>https://prem-chand.github.io/posts/qp-interior-point/</guid><description>&lt;p&gt;This document provides a comprehensive explanation of the method, which solves a batch of Quadratic Programming (QP) problems using a Primal-Dual Predictor-Corrector Interior Point Method (IPM).&lt;/p&gt;
&lt;p&gt;Consider the inequality-constrained quadratic program (QP) and its solution via the interior point method by introducing slack variables. Slack variables are a handy way to convert inequality constraints into equality constraints, which can simplify the problem&amp;rsquo;s structure and make it more intuitive to handle in some contexts.&lt;/p&gt;</description></item><item><title>What This Blog Is About</title><link>https://prem-chand.github.io/posts/about-this-blog/</link><pubDate>Sun, 23 Mar 2025 10:00:00 +0000</pubDate><guid>https://prem-chand.github.io/posts/about-this-blog/</guid><description>&lt;p&gt;I&amp;rsquo;m a controls engineer working on robotics at Strider Robotics. This blog is where I write up things I find technically interesting—mostly at the intersection of control systems, optimization, and machine learning.&lt;/p&gt;
&lt;h2 id="what-youll-find-here"&gt;What you&amp;rsquo;ll find here&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Control Systems &amp;amp; Robotics&lt;/strong&gt; — Model Predictive Control, legged locomotion, real-time trajectory optimization. Practical guides with Python and MuJoCo.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Optimization&lt;/strong&gt; — Interior point methods, quadratic programming, convex optimization as it applies to control and learning problems.&lt;/p&gt;</description></item><item><title>Deep Learning Optimizers Explained: SGD vs Adam vs AdamW</title><link>https://prem-chand.github.io/posts/optimizers/</link><pubDate>Sat, 18 Jan 2025 00:00:00 +0000</pubDate><guid>https://prem-chand.github.io/posts/optimizers/</guid><description>&lt;p&gt;Optimization algorithms are the engines of deep learning. Their job is simple in principle but tricky in practice: minimize a loss function &lt;strong&gt;L(θ)&lt;/strong&gt; by updating parameters &lt;strong&gt;θ&lt;/strong&gt; efficiently.&lt;/p&gt;
&lt;p&gt;The optimizer you choose strongly influences &lt;strong&gt;convergence speed, training stability, and final generalization&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="1-stochastic-gradient-descent-sgd"&gt;1. Stochastic Gradient Descent (SGD)&lt;/h2&gt;
&lt;p&gt;Stochastic Gradient Descent updates parameters using a single sample or a mini-batch rather than the full dataset.&lt;/p&gt;
&lt;h3 id="update-rule"&gt;Update Rule&lt;/h3&gt;
$$\theta_{t+1} = \theta_t - \eta \nabla L(\theta_t)$$&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;η&lt;/strong&gt;: learning rate&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;∇L(θₜ)&lt;/strong&gt;: gradient of the loss at step &lt;em&gt;t&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="intuition"&gt;Intuition&lt;/h3&gt;
&lt;p&gt;Imagine walking down a foggy mountain using only the local slope beneath your feet. Each step is cheap, noisy, and imperfect—but over time, you trend downward.&lt;/p&gt;</description></item></channel></rss>