Machine Learning

Articles about traditional machine learning, optimization, bayesian methods, and other machine learning topics.

712 items · Page 11 of 15

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Data, Analytics & AILanguage AI HandbookMachine Learning

Causal Language Modeling: The Foundation of Generative AI

Jul 5, 2025·42 min read

Explains how causal language modeling trains AI to predict the next token. Topics include autoregressive factorization, cross-entropy loss, causal masking.

Open notebook
History of Language AIData, Analytics & AIMachine Learning

Mixture of Experts: Sparse Activation and Routing

Jul 5, 2025·14 min read

Examines how Mixture of Experts (MoE) architectures changed large language model scaling in 2024.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Implementing Memory in Our Agent

Jul 5, 2025·17 min read

Build a complete AI agent memory system combining conversation history and persistent knowledge storage.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Recurrent Memory: Extending Transformer Context

Jul 4, 2025·68 min read

Explains how Transformer-XL uses segment-level recurrence to extend effective context length.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Position Interpolation

Jul 3, 2025·49 min read

Explains how Position Interpolation extends transformer context windows by scaling position indices to stay within training distributions.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Boosted Trees: Gradient Boosting Algorithm & Implementation

Jul 3, 2025·44 min read

Covers boosted trees and gradient boosting, covering ensemble learning, loss functions, sequential error correction, and scikit-learn implementation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

DALL·E 2: Diffusion and CLIP-Guided Image Generation

Jul 3, 2025·14 min read

Covers OpenAI's DALL·E 2, the major text-to-image generation model that combined CLIP-guided diffusion with high-quality image synthesis.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Long-Term Knowledge Storage and Retrieval

Jul 3, 2025·14 min read

Explains how AI agents store and retrieve information across sessions using vector databases, embeddings, and semantic search.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Context Length Challenges

Jul 2, 2025·39 min read

Examines the fundamental barriers limiting transformer context windows, including quadratic memory scaling, position encoding extrapolation failures.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Attention Sinks and StreamingLLM for Long Generation

Jul 1, 2025·57 min read

Explains why the first tokens in transformer sequences absorb excess attention weight, how this causes streaming inference failures.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

Codex: AI-Assisted Code Generation

Jul 1, 2025·18 min read

Codex adapted GPT-3 for code completion and generation. Covers its training data, natural-language prompts, benchmark results, and role in developer tools.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Short-Term Conversation Memory

Jul 1, 2025·15 min read

Give AI agents the ability to remember recent conversations, handle follow-up questions, and manage conversation history across multiple interactions.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Random Forest: Ensemble Learning

Jun 30, 2025·43 min read

Covers Random Forest covering ensemble learning, bootstrap sampling, random feature selection, bias-variance tradeoff, and implementation in scikit-learn.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

NTK-aware Scaling: Extending Context Length in LLMs

Jun 29, 2025·57 min read

NTK-aware scaling extends transformer context windows by adjusting rotary frequencies. Covers position preservation, longer sequences, and tradeoffs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

DALL·E: Text-to-Image Generation

Jun 29, 2025·12 min read

Covers OpenAI's DALL·E, the early text-to-image generation model that extended transformer architectures to multimodal tasks.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Adding a Calculator Tool to Your AI Agent

Jun 29, 2025·15 min read

Build a working calculator tool for your AI agent from scratch. Topics include the complete workflow from Python function to tool integration.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

FlashAttention Implementation

Jun 28, 2025·51 min read

Covers FlashAttention's tiled computation and online softmax algorithms. Topics include GPU memory hierarchy, CUDA kernel basics.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

FlashAttention Algorithm

Jun 27, 2025·45 min read

Explains how FlashAttention achieves 2-4x speedups by restructuring attention computation. Topics include GPU memory hierarchy, tiling for SRAM.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

CART Decision Trees: Classification and Regression Trees

Jun 27, 2025·45 min read

Covers CART (Classification and Regression Trees), including mathematical foundations, Gini impurity, variance reduction.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

GPT-3 and In-Context Learning

Jun 27, 2025·21 min read

GPT-3 showed that scaling autoregressive transformers could enable in-context and few-shot learning. Covers its architecture, data, prompting, and limitations.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Using a LLM in Code: API Integration & Implementation

Jun 27, 2025·15 min read

Call language models from Python code, including GPT-5, Claude Sonnet 4.5, and Gemini 2.5. Covers API integration, error handling.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

YaRN: Extending Context Length

Jun 26, 2025·58 min read

Explains how YaRN extends LLM context length through wavelength-based frequency interpolation and attention temperature correction.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Linear Attention: Breaking the Quadratic Bottleneck

Jun 25, 2025·42 min read

Explains how linear attention achieves O(nd²) complexity by replacing softmax with kernel functions.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

T5 and Text-to-Text Framework

Jun 25, 2025·19 min read

Covers Google's T5 (Text-to-Text Transfer Transformer) introduced in 2019. Explains how the text-to-text framework unified diverse NLP tasks.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Designing Simple Tool Interfaces

Jun 25, 2025·14 min read

Design effective tool interfaces for AI agents, from basic function definitions to multi-tool orchestration.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Sliding Window Attention

Jun 24, 2025·43 min read

Explains how sliding window attention reduces transformer complexity from quadratic to linear.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Logistic Regression: Math & Python

Jun 24, 2025·46 min read

Covers logistic regression covering mathematical foundations, the logistic function, optimization algorithms, and practical implementation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Longformer: Efficient Attention for Long Documents

Jun 23, 2025·55 min read

Explains how Longformer combines sliding window and global attention to process documents of 4,096+ tokens with O(n) complexity instead of O(n²).

Open notebook
History of Language AIMachine LearningData, Analytics & AI

GLUE and SuperGLUE: Language Understanding Benchmarks

Jun 23, 2025·19 min read

Covers GLUE and SuperGLUE benchmarks introduced in 2018. Explains how these standardized evaluation frameworks changed language AI research.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Why AI Agents Need Tools Beyond Language Models

Jun 23, 2025·10 min read

Explains why AI agents need external tools to overcome limitations like outdated knowledge, imprecise calculations, and inability to take real-world actions.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Sparse Attention Patterns: Local, Strided

Jun 22, 2025·61 min read

Implement sparse attention patterns including local windows, strided attention, and block-sparse methods.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BigBird: Sparse Attention

Jun 21, 2025·40 min read

BigBird combines sliding-window, global, and random attention to reach linear complexity. Covers its guarantees and use with long documents.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Poisson Regression: Count Data Modeling with Math & Python

Jun 21, 2025·49 min read

Covers Poisson regression for count data analysis. Topics include mathematical foundations, maximum likelihood estimation, rate ratio interpretation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

Transformer-XL: Extending Transformers to Long Sequences

Jun 21, 2025·6 min read

Transformer-XL extends context with segment recurrence and relative positions. Covers its architecture, efficiency, training method, and influence.

Open notebook
Data, Analytics & AIMachine LearningAI Agent Handbook

Chain-of-Thought Reasoning for AI Agents

Jun 21, 2025·16 min read

Use chain-of-thought prompting to get AI agents to reason through problems step by step, improving accuracy and transparency for complex questions.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Global Tokens for Long-Range Attention

Jun 20, 2025·51 min read

Global tokens create communication hubs in sparse attention, reducing path length and helping efficient transformers exchange information across long documents.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Quadratic Attention Bottleneck

Jun 19, 2025·48 min read

Explains why self-attention has O(n²) complexity, how memory and compute scale quadratically with sequence length.

Open notebook
History of Language AIMachine LearningData, Analytics & AI

BERT for Search: Transformer Ranking and Semantic Retrieval

Jun 19, 2025·19 min read

Covers BERT's application to information retrieval in 2019. Explains how transformer architectures changed search and ranking systems.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Checking and Refining Agent Reasoning

Jun 19, 2025·16 min read

Guide AI agents to verify and refine their reasoning through self-checking techniques. Topics include practical methods for catching errors, improving accuracy.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Encoder-Decoder Architecture: Cross-Attention

Jun 18, 2025·42 min read

Covers encoder-decoder transformer architecture that powers T5 and machine translation. Topics include cross-attention mechanism.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Spline Regression: Non-Linear Modeling with Math & Python

Jun 18, 2025·65 min read

Spline regression models nonlinear relationships with piecewise polynomials. Covers B-splines, knot selection, natural cubic splines, and Python.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Decoder Architecture: Causal Masking

Jun 17, 2025·38 min read

Covers decoder-only transformers powering GPT, Llama, and modern LLMs. Topics include causal masking, autoregressive generation, KV caching.

Open notebook
History of Language AIMachine LearningData, Analytics & AI

ELMo and ULMFiT: Transfer Learning for NLP

Jun 17, 2025·20 min read

Covers ELMo and ULMFiT, the advance methods that established transfer learning for NLP in 2018.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Step-by-Step Problem Solving

Jun 17, 2025·15 min read

Teach AI agents to think through problems step by step using chain-of-thought reasoning.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Transformer Architecture Hyperparameters: Depth, Width

Jun 16, 2025·39 min read

Design transformer architectures by understanding the key hyperparameters: model depth, width, attention heads, and FFN dimensions.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Cross-Attention: Connecting Encoder and Decoder

Jun 15, 2025·59 min read

Covers cross-attention, the mechanism that bridges encoder and decoder in sequence-to-sequence transformers.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningMachine Learning from Scratch

Multinomial Logistic Regression: Math & Python

Jun 15, 2025·48 min read

Covers multinomial logistic regression covering mathematical foundations, softmax function, coefficient estimation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

GPT-1 and GPT-2: Autoregressive Transfer Learning

Jun 15, 2025·18 min read

Covers OpenAI's GPT-1 and GPT-2 models. Explains how autoregressive pretraining with transformers enabled transfer learning across NLP tasks.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12