<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Ishaan Sandhwar — writing</title><description>Derivations and notes on machine learning, deployment and GATE CS.</description><link>https://ishaansandhwar.netlify.app/</link><language>en-gb</language><item><title>The master theorem, and the recurrences it refuses to solve</title><link>https://ishaansandhwar.netlify.app/writing/master-theorem-recurrences/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/master-theorem-recurrences/</guid><description>The three cases with the comparison that decides them, worked on merge sort, binary search and Strassen — plus the GATE favourite that falls in the gap.</description><pubDate>Tue, 01 Sep 2026 00:00:00 GMT</pubDate><category>Algorithms</category><category>GATE</category><category>Complexity</category></item><item><title>Normalisation up to BCNF, and the dependency you have to give up</title><link>https://ishaansandhwar.netlify.app/writing/normalisation-to-bcnf/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/normalisation-to-bcnf/</guid><description>Attribute closure, candidate keys, and 1NF through BCNF on one small relation — including the standard example where BCNF costs you a functional dependency.</description><pubDate>Tue, 01 Sep 2026 00:00:00 GMT</pubDate><category>DBMS</category><category>GATE</category><category>Normalisation</category></item><item><title>The split is the experiment — five ways data leaks</title><link>https://ishaansandhwar.netlify.app/writing/leakage-and-the-split/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/leakage-and-the-split/</guid><description>Why fitting a scaler before splitting inflates your score, plus the group, temporal and duplicate leaks that survive a correct train_test_split.</description><pubDate>Sat, 29 Aug 2026 00:00:00 GMT</pubDate><category>Evaluation</category><category>scikit-learn</category><category>Methodology</category></item><item><title>Bias, variance, and what L1 and L2 actually do to the weights</title><link>https://ishaansandhwar.netlify.app/writing/bias-variance-and-regularisation/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/bias-variance-and-regularisation/</guid><description>The decomposition derived in four lines, then why ridge shrinks everything and lasso sets coefficients to exactly zero.</description><pubDate>Wed, 26 Aug 2026 00:00:00 GMT</pubDate><category>Regularisation</category><category>Model selection</category><category>Statistics</category></item><item><title>Backpropagation by hand — one forward pass, one backward pass, real numbers</title><link>https://ishaansandhwar.netlify.app/writing/backpropagation-by-hand/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/backpropagation-by-hand/</guid><description>A two-layer network worked end to end with arithmetic you can check, including the update and the loss afterwards to prove it went down.</description><pubDate>Sat, 22 Aug 2026 00:00:00 GMT</pubDate><category>Backpropagation</category><category>Neural networks</category><category>Chain rule</category></item><item><title>Softmax without overflow — the max-subtraction trick, proved</title><link>https://ishaansandhwar.netlify.app/writing/softmax-without-overflow/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/softmax-without-overflow/</guid><description>Why exp() overflows at around 709, why subtracting the max changes nothing mathematically, and how log-sum-exp keeps the whole thing finite.</description><pubDate>Tue, 18 Aug 2026 00:00:00 GMT</pubDate><category>Numerical stability</category><category>Softmax</category><category>Fundamentals</category></item><item><title>Logistic regression, and why the gradient is just (p − y)</title><link>https://ishaansandhwar.netlify.app/writing/logistic-regression-cross-entropy/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/logistic-regression-cross-entropy/</guid><description>Deriving the sigmoid&apos;s derivative, the cross-entropy loss, and the one-line gradient that falls out — plus why squared error is the wrong loss for classification.</description><pubDate>Fri, 14 Aug 2026 00:00:00 GMT</pubDate><category>Classification</category><category>Cross-entropy</category><category>Optimisation</category></item><item><title>Linear regression two ways — closed form and gradient descent</title><link>https://ishaansandhwar.netlify.app/writing/linear-regression-two-ways/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/linear-regression-two-ways/</guid><description>Deriving the normal equation from the gradient, solving a three-point dataset by hand, and the cost analysis that says when to give up on the exact answer.</description><pubDate>Tue, 11 Aug 2026 00:00:00 GMT</pubDate><category>Regression</category><category>Linear algebra</category><category>Optimisation</category></item><item><title>From one derivative to gradient descent, with numbers</title><link>https://ishaansandhwar.netlify.app/writing/derivative-to-gradient-descent/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/derivative-to-gradient-descent/</guid><description>What a derivative actually tells you, why the update rule subtracts it, and the exact learning rate at which the whole thing blows up.</description><pubDate>Fri, 07 Aug 2026 00:00:00 GMT</pubDate><category>Calculus</category><category>Optimisation</category><category>Fundamentals</category></item><item><title>Shapes first — vectors, matrices, and why matmul is the whole game</title><link>https://ishaansandhwar.netlify.app/writing/shapes-first-matmul/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/shapes-first-matmul/</guid><description>The linear algebra you need before any of the rest makes sense, written as the shape rules I check before running anything.</description><pubDate>Tue, 04 Aug 2026 00:00:00 GMT</pubDate><category>Linear algebra</category><category>NumPy</category><category>Fundamentals</category></item><item><title>Attention, derived rather than quoted</title><link>https://ishaansandhwar.netlify.app/writing/attention-from-scratch/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/attention-from-scratch/</guid><description>Most explanations hand you softmax(QKᵀ/√d) and move on. Here is where each piece comes from, why the scaling factor is a square root, and what breaks without it.</description><pubDate>Sat, 14 Feb 2026 00:00:00 GMT</pubDate><category>Transformers</category><category>Attention</category><category>From first principles</category></item><item><title>Your model is not wrong, it is overconfident</title><link>https://ishaansandhwar.netlify.app/writing/calibration-not-accuracy/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/calibration-not-accuracy/</guid><description>Accuracy tells you how often the label is right. Calibration tells you whether the confidence means anything — and for anything with a human downstream, the second matters more.</description><pubDate>Thu, 22 Jan 2026 00:00:00 GMT</pubDate><category>Calibration</category><category>Evaluation</category><category>Deployment</category></item><item><title>Fine-tuning a 7B model on a 12GB card</title><link>https://ishaansandhwar.netlify.app/writing/qlora-on-one-gpu/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/qlora-on-one-gpu/</guid><description>The memory arithmetic that decides whether a fine-tune fits, and the four settings that actually move the number. No A100 required.</description><pubDate>Mon, 08 Dec 2025 00:00:00 GMT</pubDate><category>QLoRA</category><category>PEFT</category><category>Tutorial</category></item><item><title>Page replacement, and the GATE trap in Belady&apos;s anomaly</title><link>https://ishaansandhwar.netlify.app/writing/page-replacement-gate/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/page-replacement-gate/</guid><description>FIFO, LRU and Optimal worked end to end on one reference string, plus the question pattern that catches people every year.</description><pubDate>Mon, 03 Nov 2025 00:00:00 GMT</pubDate><category>Operating systems</category><category>GATE</category><category>Memory management</category></item><item><title>In a RAG system, retrieval is the model</title><link>https://ishaansandhwar.netlify.app/writing/retrieval-is-the-model/</link><guid isPermaLink="true">https://ishaansandhwar.netlify.app/writing/retrieval-is-the-model/</guid><description>Three weeks of fine-tuning bought six points. Two days of fixing chunking bought nineteen. Here is why that keeps happening.</description><pubDate>Sun, 19 Oct 2025 00:00:00 GMT</pubDate><category>RAG</category><category>Retrieval</category><category>LLM engineering</category></item></channel></rss>