Categories › ML Foundations

ML Foundations

The math, statistics, and classical ML you keep reaching for when models stop behaving.

Filter and search

Linear algebra and probability at the depth an engineer actually uses, the supervised and unsupervised learning loop, evaluation and error analysis, feature engineering and leakage, and the debugging habits that separate people who can train a model from people who can fix one.

57 posts, from beginner to advanced. Each ends with what to read next.

Model Selection Guide: When to Use Which ML Algorithm

A practical decision framework for choosing the right machine learning algorithm - from linear models to gradient boosting to neural networks - based on your data, constraints, and goals.

#decision-tree#model-selection#reference#algorithms

Evaluation Metrics Guide: Which Metric to Use and When

Accuracy is rarely the right metric. This guide explains every major ML evaluation metric - classification, regression, ranking, and generation - with clear guidance on when to use each one.

#regression#evaluation#metrics#ranking#reference#classification

Python ML Quick Reference

The NumPy, Pandas, and scikit-learn one-liners you reach for every day - organized by task so you spend less time searching and more time building.

#python#scikit-learn#numpy#pandas#reference

Math for ML: The Cheat Sheet Every Practitioner Needs

The math you actually use in ML - vectors, matrices, gradients, probability, and the key calculus rules - distilled into a single reference you can return to again and again.

#reference#mathematics#linear-algebra#probability#calculus

Backpropagation: The Intuition You Need Before the Math

Backpropagation is how neural networks compute gradients across many layers. The math is chain rule. The intuition is fault attribution - which weights caused the error?

#gradient-descent#neural-networks#math

Why Loss Functions Matter and How to Choose One

The loss function determines what your model is actually optimizing for. Wrong choice = optimizing for the wrong thing. This post explains the options and how to decide.

#gradient-descent#math#deep-learning

ML Glossary: Terms Every Practitioner Should Know

A practical reference glossary of ML terms - not textbook definitions, but the way these concepts are used in real engineering conversations and decisions.

#career#sklearn#agent-engineering

The Train / Val / Test Split: Common Mistakes

Getting the data split right is the foundation of honest ML evaluation. These are the most common ways teams get it wrong - and what to do instead.

#evaluation#sklearn#statistics

Regularization: L1, L2, and Dropout Without the Formulas

Models that overfit memorize training data instead of learning patterns. Regularization prevents this. This post explains the three main techniques and when to use each.

#deep-learning#sklearn#gradient-descent

Embeddings: What They Are and Why They Work

Embeddings are the foundation of modern NLP and recommendation systems. This post explains the core idea, why it works, and how to use them in practice.

#embeddings#vector-search#deep-learning

Cross-Validation Done Right

Cross-validation is the standard for honest model evaluation - but only when done correctly. This post covers the what, why, and the leakage mistakes that invalidate it.

#evaluation#sklearn#metrics

The Bias - Variance Tradeoff: What It Actually Means

High bias or high variance - the two ways a model can fail. This post explains what they are, why they trade off, and how to diagnose which problem you have.

#evaluation#statistics#sklearn

Gradient Descent Explained From Scratch

Gradient descent is the engine behind every trained neural network. This post builds it up from the intuition of walking downhill to the code that makes it work.

#gradient-descent#math#neural-networks#python

Model Evaluation and Experiment Tracking

Evaluation is harder than training. This guide covers choosing the right metrics, understanding confidence intervals in model comparison, A/B testing discipline, and experiment tracking that makes ML work reproducible and auditable.

#evaluation#ab-testing#experiment-tracking

Unsupervised Learning and Recommendation Basics

Clustering, dimensionality reduction, embeddings, and the fundamentals of recommendation systems - when you have no labels and still need to make decisions.

#unsupervised-learning#recommendation-systems#embeddings

Linear Algebra for Gradient Descent

How vector geometry, scaling, and conditioning shape training behavior in real ML systems.

#optimization#math#branch#linear-algebra#gradient-descent

Data Cleaning and Feature Engineering

Better data beats better algorithms every time. This guide covers missing values, outliers, categorical encoding, feature engineering, and the silent killer - data leakage.

#data-cleaning#feature-engineering#pipelines

Experiment Tracking and Reproducibility Systems

Design a lightweight but serious reproducibility system for ML runs, artifacts, configs, and promotions.

#reproducibility#workflow#branch#experiment-tracking#mlops#python

Python for ML: Practical Workflow

Python for ML is not the same as Python for web dev. This guide covers the environment setup, project structure, notebook discipline, and workflow habits that actually matter in production ML teams.

#python#pandas#notebooks

Leakage-Proof Feature Pipelines

Turn feature engineering from a notebook habit into a disciplined contract with train/serve parity and leakage defenses.

#data-quality#feature-engineering#branch#data-pipelines#evaluation

Math and Stats for Machine Learning

Build the math intuition that makes ML make sense - linear algebra, probability, calculus, and statistics explained as engineering tools, not abstract theory.

#math#statistics#ml-basics

Evaluation Metrics and Error Analysis Systems

Build a model evaluation practice that goes beyond leaderboard numbers into cohort behavior, threshold policy, and deployment risk.

#supervised-learning#evaluation#branch#metrics#sklearn

Model Debugging and Error Analysis

Teach systematic debugging of poor models using slices, residuals, and ablations.

#evaluation#sklearn#metrics

Supervised Learning Foundations

Enter real machine learning with train-validation-test discipline and core supervised concepts.

#sklearn#evaluation#feature-engineering

Supervised Learning End to End

From problem framing to a defensible model: the complete supervised ML loop - baselines, model selection, evaluation, debugging, and the iteration discipline that separates good ML engineers from great ones.

#supervised-learning#metrics#model-selection

Milestone Gate 1: ML Core Transition

Assess core transition readiness from SWE to applied ML engineering.

#gate#milestone-1#assessment#evaluation#sklearn#python

Training Pipelines and Experiment Strategy

Build training pipelines and experiment strategy for fast, trustworthy iteration.

#training-pipelines#experimentation#milestone-1#experiment-tracking#mlops#python

Data Contracts, Quality, and Features

Design resilient data contracts and feature standards that reduce production breakage.

#data-contracts#feature-quality#milestone-1#feature-engineering#data-pipelines

Applied Stats for Engineering Decisions

Use statistical reasoning to make better product and model decisions under uncertainty.

#statistics#decision-making#milestone-1#evaluation#python

Python for ML Bridge for SWE

Translate software engineering strengths into ML workflows with disciplined experimentation.

#python#swe-transition#milestone-1#sklearn

Milestone Gate 1: Foundations Validation

A timed gate to validate core ML foundations before moving to model architecture depth.

#gate#milestone-1#assessment#evaluation#sklearn

Unsupervised + Recsys Foundations (Deep)

Build practical expertise in clustering, embeddings, retrieval signals, and ranking foundations for recommendation systems.

#unsupervised-learning#recsys#milestone-1

Supervised Learning End-to-End (Deep)

Run supervised ML with baselines, disciplined experiments, error analysis, and production-aware decisions.

#supervised-learning#evaluation#milestone-1

Data Cleaning and Feature Engineering (Deep)

Build leakage-safe data pipelines and features that behave the same way in training and production.

#data-quality#feature-engineering#milestone-1

Python for ML Workflow (Deep)

Build a production-grade ML project workflow with reproducibility, experiment lineage, and deployment-ready structure.

#python#workflow#milestone-1#mlops#experiment-tracking

Math and Stats for ML (Deep)

Use linear algebra, probability, and optimization to reason about model behavior instead of treating libraries as black boxes.

#math#statistics#milestone-1