Blog

Machine Learning

Deep dives into ML algorithms, models, and applications

Machine Learning10 min read

Computer Vision for Software Developers: What You Can Build Today

Using pretrained models for classification, detection, OCR, and segmentation. APIs vs local inference. When to fine-tune vs use a multimodal LLM. CLIP for image search.

Computer Vision for Software Developers: What You Can Build Today
Machine Learning6 min read

Cross-Validation: Reliably Estimating Model Performance on Unseen Data

A single train/test split gives you a noisy estimate of real performance. Cross-validation gives you a reliable one. Here is every variant, when to use each, and the mistakes to avoid.

Cross-Validation: Reliably Estimating Model Performance on Unseen Data
Machine Learning9 min read

Generative vs Discriminative Models: The Fundamental ML Distinction

Discriminative models learn decision boundaries. Generative models learn data distributions. Understanding this split explains why LLMs can generate text and when each approach wins.

Generative vs Discriminative Models: The Fundamental ML Distinction
Machine Learning9 min read

Data Labeling Guide: How to Annotate Training Data Efficiently and Accurately

Labeling tools, quality control with inter-annotator agreement, active learning to cut labeling costs by 60-80%, and programmatic labeling with Snorkel.

Data Labeling Guide: How to Annotate Training Data Efficiently and Accurately
Machine Learning9 min read

Auditing ML Models for Bias: A Practical Guide

ML bias is systematic, measurable, and addressable. This guide covers the types of bias, fairness metrics, audit process, and tools to find and fix disparate model performance.

Auditing ML Models for Bias: A Practical Guide
Machine Learning9 min read

A/B Testing ML Models in Production: What's Different and How to Do It Right

Why ML A/B tests differ from standard software tests, novelty effects, multi-armed bandits, shadow mode testing, and how to measure model impact rigorously.

A/B Testing ML Models in Production: What's Different and How to Do It Right
Machine Learning10 min read

Hyperparameter Tuning and Optuna Guide for Machine Learning

Master machine learning hyperparameter tuning with Optuna, Bayesian optimization, Tree-structured Parzen Estimators, MedianPruner, and distributed PostgreSQL studies.

Hyperparameter Tuning and Optuna Guide for Machine Learning Cover Graphic
Machine Learning9 min read

Gradient Descent Explained: How Machine Learning Models Actually Learn

Gradient descent is the engine behind every modern ML model. Here is how it works, why learning rate matters, and when to use Adam over SGD.

Gradient Descent Explained: How Machine Learning Models Actually Learn
Machine Learning8 min read

BERT Explained for Developers: What It Is, How It Works, and When to Use It

BERT introduced bidirectional context to NLP in 2018. Here is what that means, how it differs from GPT, and when to reach for it over a modern LLM API.

BERT Explained for Developers: What It Is, How It Works, and When to Use It
Machine Learning7 min read

Time Series Forecasting: ARIMA, LightGBM, and LSTM Compared

Time series has seasonality, trend, and temporal dependencies that standard ML ignores. Here is when to use ARIMA vs. LightGBM lag features vs. LSTM — and the critical mistake of random data splits.

Time Series Forecasting: ARIMA, LightGBM, and LSTM Compared
Machine Learning9 min read

Natural Language Inference: The Technique Behind Zero-Shot Text Classification

NLI models can classify text into any category without labeled examples. Here is how entailment-based classification works, the best models to use, and real-world limitations.

Natural Language Inference: The Technique Behind Zero-Shot Text Classification
Machine Learning9 min read

Building a Dataset for ML: What Makes Good Training Data

Data quantity requirements, labeling strategies, augmentation techniques, the data flywheel, and how production models generate their own training data.

Building a Dataset for ML: What Makes Good Training Data
Machine Learning10 min read

LLM Fine-Tuning in Practice: A Developer's Complete Walkthrough

Dataset preparation, LoRA hyperparameters, Unsloth for faster training, evaluation against the base model, and avoiding catastrophic forgetting and overfitting.

LLM Fine-Tuning in Practice: A Developer's Complete Walkthrough
Machine Learning9 min read

GPT Architecture Explained: Beyond the Surface Level

GPT's autoregressive, decoder-only design enables text generation at scale. Here is how it actually works -- from pretraining data to emergent capabilities to GPT-4o.

GPT Architecture Explained: Beyond the Surface Level
Machine Learning10 min read

Neural Networks Explained: A Visual Guide for Software Developers

A neural network is layers of mathematical functions that transform inputs into outputs. Here is how they work, why depth matters, and what developers need to know.

Neural Networks Explained: A Visual Guide for Software Developers
Machine Learning10 min read

MLflow Experiment Tracking and LLM Tracing Guide in Python

Master MLflow for experiment tracking, model registry, and LLM tracing in Python. Learn self-hosted PostgreSQL setups, autologging, and production deployment.

MLflow Experiment Tracking and LLM Tracing Guide in Python Cover Graphic
Machine Learning7 min read

Overfitting and Underfitting in ML: How to Diagnose and Fix Both

Overfitting memorizes training data and fails on new data. Underfitting is too simple to capture patterns. The train vs. validation loss curve tells you which you have. Learn to diagnose and fix both with dropout, regularization, early stopping, and more.

Overfitting and Underfitting in ML: How to Diagnose and Fix Both
Machine Learning11 min read

Building a RAG System From Scratch: A Complete Implementation Guide

RAG retrieves relevant documents at query time and adds them to the prompt. Five steps: chunk, embed, store, retrieve, evaluate. Here is the complete implementation.

Building a RAG System From Scratch: A Complete Implementation Guide
Machine Learning7 min read

LayoutLMv3: Understanding PDFs, Forms, and Documents With Layout Awareness

Microsoft's LayoutLMv3 pretrains on text, bounding boxes, and image patches together, enabling form understanding, receipt parsing, and document VQA without separate OCR fine-tuning.

LayoutLMv3: Understanding PDFs, Forms, and Documents With Layout Awareness
Machine Learning9 min read

When Not to Use Machine Learning: Simpler Solutions That Actually Work

Most ML projects fail not because ML is hard but because ML was the wrong tool. A decision tree, a regex, or a database query solves most 'AI' problems faster.

When Not to Use Machine Learning: Simpler Solutions That Actually Work
Machine Learning10 min read

Vector Databases Explained: What They Are and When to Use Them

A vector database stores embeddings and finds the most similar ones to a query. SQL cannot do this. ChromaDB, Pinecone, Weaviate, pgvector, and Qdrant compared.

Vector Databases Explained: What They Are and When to Use Them
Machine Learning4 min read

Neptune.ai: Experiment Tracking for ML Teams That Outgrew Notebooks

Neptune.ai tracks ML experiments, stores artifacts and metrics, and enables team collaboration on model comparisons - bridging the gap between prototype notebooks and production model management.

Neptune.ai: Experiment Tracking for ML Teams That Outgrew Notebooks
Machine Learning8 min read

DeepSpeed: Train Models With Billions of Parameters on Limited GPUs

Microsoft's DeepSpeed enables training of 100B+ parameter models across distributed GPU clusters through ZeRO optimization stages, CPU offloading, and RLHF support.

DeepSpeed: Train Models With Billions of Parameters on Limited GPUs
Machine Learning4 min read

PEFT and LoRA: Fine-Tune a 7B LLM on a Single GPU in 2026

The PEFT library with LoRA and QLoRA enables fine-tuning 7B parameter LLMs on a single consumer GPU by updating only a small fraction of parameters, reducing VRAM from 14GB to under 5GB.

PEFT and LoRA: Fine-Tune a 7B LLM on a Single GPU in 2026
PrevPage 2Next