I decode complexity in ML and beyond.
Breaking hard things into pieces, understanding each piece, connecting it back to the whole. Showing how I think, not just what to think.
A Model That Never Predicts Churn Still Scores 73.5% Accuracy: The Class Imbalance Trap
A model that never predicts churn scores 73.5% accuracy. See why accuracy hides a 0% vs 41.5% gap and what to measure instead.
Read the post →New here? Start here
Short reading orders that build on each other.
From vectors to how a model learns
The building blocks first, then loss, calculus and gradient descent.
- 1.What is a Vector? The True Building Blocks of Machine Learning
- 2.The Math That Powers AI: The Dot Product Explained
- 3.Matrices in Machine Learning – Basics with Python & NumPy
- 4.What is a Loss Function? Why is it the GPS of AI?
- 5.The Machine's Compass: Why AI Needs Calculus to Learn
- 6.The Gradient Vector: The One Mathematical Object That Trains Every Neural Network
- 7.Gradient Descent: The Update Rule That Trains Every Model
Python for Beginners
A step-by-step Python course: data types, strings, collections, control flow, functions, files, modules and classes, finishing with a small project. One lesson at a time.
- 1.Getting Started with Python
- 2.Python Print Function - What parameters does it accept?
- 3.Python Syntax & Comments
- 4.Variables in Python
- 5.Why input() Always Gives You Text, Even When You Type a Number
- 6.Data Types in Python
- …and 51 more lessons
IBM i essentials
Subsystems, activation groups, free-format RPGLE, CHAIN and the SQL services.
- 1.What is Subsystem?
- 2.What is Activation Group?
- 3.Advantages of using Free-format RPGLE
- 4.What we need to know about CHAIN (RPGLE) & How is it different from READ?
- 5.What is SQL Path? And, How to change SQL Path on IBM i?
- 6.Run CL commands from SQL - IBM i
Most read
AI, ML & Math
- 1Linear Independence & Dependence Explained (The Key to Feature Engineering)
- 2Gram-Schmidt Process Explained (The Math of QR Decomposition)
- 3Orthogonality & Orthonormal Basis Explained (Linear Algebra for Developers)
- 4Why LoRA Works: The SVD Math Behind Efficient Fine-Tuning
- 5Least Squares Approximation Explained (The Engine of Linear Regression)
More recent posts
Browse all 200 posts →
Why an AI Picks the Wrong Sentence Even When It Knows the Right One
Greedy decoding picked a sentence its own model rated ~950x less likely. See why on a real model, and how beam search fixes it.

Greedy vs. Sampling: Why the Same Prompt Can Give You a Different Answer Every Time
Why the exact same prompt to an LLM can answer identically every time, or differently every time -- verified on a real, free model.

Cosine Similarity Isn't Measuring What You Think It Is
Cosine similarity isn't broken. The vectorizer feeding it is — see how TF-IDF misranked a RAG chunk that real embeddings got right.

Data Leakage: The 97% Test Score That Became 78% in Production
A model scored 97% in testing, 78% in production — nothing crashed. Here's what data leakage is, and the test to catch it before you ship.
Why Your RAG Pipeline Retrieves the Wrong Chunk?
Your RAG pipeline isn't broken by a bad model or a bad prompt — the real failure happens earlier, at the character boundary where chunks get cut.

Gradient Descent: The Update Rule That Trains Every Model
The one-line update rule that trains every model — and why the learning rate decides if it converges, crawls, or explodes.
Browse by subject
Machine Learning & Math
66 postsMachine learning, AI and the math behind it, plus cryptography and hashing, broken into pieces and connected back to the whole.
- Nov 10, 2026A Model That Never Predicts Churn Still Scores 73.5% Accuracy: The Class Imbalance Trap
- Nov 5, 2026The KV Cache: How Saving Past Work Turns 1,275 Computations Into 50
- Nov 3, 2026Top-p Sampling: Why the Same Setting Keeps 2 Tokens One Time and 8 the Next
Python
57 postsA step-by-step Python course for beginners, plus practical Python tutorials on files, data and scripting.
- Nov 26, 2026*args and **kwargs: Functions That Accept Any Number of Arguments
- Nov 26, 2026Classes and Objects: Bundle Data and Behavior Into One Thing
- Nov 26, 2026Why Changing One List Changed Another: Copies in Python
IBM i
77 postsA reference library of IBM i tutorials: RPGLE, SQL services, ILE and system administration.
- Mar 20, 2025Load All Subfile
- Mar 3, 2025CRTDUPOBJ, CPYF and The difference
- Dec 24, 2023What is the importance of User Open (USROPN) in RPGLE - IBM i