Machine Learning

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

712 items · Page 12 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
AI Agent HandbookMachine LearningData, Analytics & AI

Prompting: Writing Effective Instructions for AI Agents

Jun 15, 2025·8 min read

Covers art of communicating with AI agents through effective prompting. Craft clear instructions, use roles and examples.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Weight Tying in Transformer Embeddings

Jun 14, 2025·53 min read

Explains how weight tying reduces transformer parameters by sharing the input embedding and output projection matrices.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Encoder Architecture

Jun 13, 2025·45 min read

Explains how encoder-only transformers like BERT use bidirectional self-attention for text understanding.

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

BERT: Bidirectional Pretraining for Language Understanding

Jun 13, 2025·15 min read

Covers BERT (Bidirectional Encoder Representations from Transformers), including masked language modeling, bidirectional context understanding.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

Prompting Strategies and Tips: Role Assignment

Jun 13, 2025·12 min read

Covers advanced prompting strategies for AI agents including role assignment, few-shot prompting with examples, and iterative refinement.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Gated Linear Units: The FFN Architecture Behind Modern LLMs

Jun 12, 2025·44 min read

Explains how GLUs transform feed-forward networks through multiplicative gating. Topics include SwiGLU, GeGLU, and the parameter trade-offs that power LLaMA.

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

Elastic Net Regularization: Math & Python

Jun 12, 2025·52 min read

Covers Elastic Net regularization, including mathematical foundations, geometric interpretation.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

FFN Activation Functions: ReLU, GELU

Jun 11, 2025·52 min read

Compare activation functions in transformer feed-forward networks: ReLU's simplicity and dead neuron problem, GELU's smooth probabilistic gating for BERT.

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

XLNet, RoBERTa, ALBERT

Jun 11, 2025·17 min read

Explains how XLNet, RoBERTa, and ALBERT refined BERT through permutation language modeling, optimized training procedures, and architectural efficiency.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Crafting Clear Instructions

Jun 11, 2025·10 min read

Covers the fundamentals of writing effective prompts for AI agents. Explains how to be specific, provide context.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Transformer Blocks: Encoder and Decoder Assembly

Jun 10, 2025·44 min read

Assemble transformer blocks by combining residual connections, normalization, attention, and feed-forward networks.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Layer Normalization: Stabilizing Transformer Training

Jun 9, 2025·52 min read

Explains how layer normalization enables stable transformer training by normalizing.

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

Polynomial Regression: Math and Python Implementation

Jun 9, 2025·38 min read

Model nonlinear relationships with polynomial regression. Covers feature construction, Python implementation, model selection, bias, variance, and overfitting.

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

RLHF Foundations: Learning from Human Preferences in RL

Jun 9, 2025·13 min read

Covers preference-based learning, the framework developed by Christiano et al. in 2017.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

Language Models as the Core of AI Agents

Jun 9, 2025·4 min read

Language models are the reasoning core of many AI agents. Covers token prediction, instruction following, tool selection, and limits of model-only systems.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Feed-Forward Networks in Transformers: Architecture

Jun 8, 2025·56 min read

Explains how feed-forward networks provide nonlinearity in transformers, with 2-layer architecture, 4x dimension expansion, parameter analysis.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Pre-Norm vs Post-Norm

Jun 7, 2025·46 min read

Compare pre-norm and post-norm transformer blocks. Covers layer-normalization placement, gradient flow, training stability, and model depth.

Open notebook
History of Language AIMachine LearningData, Analytics & AI

The Transformer: Attention Is All You Need

Jun 7, 2025·20 min read

Covers the Transformer architecture, including self-attention mechanisms, multi-head attention, positional encodings.

Open notebook
AI Agent HandbookMachine LearningSoftware Engineering

The Personal Assistant We'll Build

Jun 7, 2025·14 min read

Covers what you'll build throughout this book: a capable AI agent that remembers conversations, uses tools, plans tasks, and grows smarter with each chapter.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Residual Connections and Gradient Flow in Transformers

Jun 6, 2025·46 min read

Explains how residual connections solve the vanishing gradient problem in deep networks. Topics include the math behind skip connections, gradient highways.

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

Ridge Regression (L2 Regularization): Math & Implementation

Jun 6, 2025·36 min read

Covers Ridge regression and L2 regularization, including mathematical foundations, geometric interpretation, bias-variance tradeoff.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

RMSNorm: Efficient Normalization for Modern LLMs

Jun 5, 2025·58 min read

Covers RMSNorm, the simpler alternative to LayerNorm used in LLaMA, Mistral, and modern LLMs.

Open notebook
History of Language AIMachine LearningData, Analytics & AI

Wikidata: Collaborative Knowledge Base for Language AI

Jun 5, 2025·27 min read

Covers Wikidata, the collaborative multilingual knowledge base launched in 2012. Explains how Wikidata changed structured knowledge representation.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

How LLMs Work in Plain English: Understanding AI's Brain

Jun 5, 2025·14 min read

Explains how language models predict text, process tokens, and power AI agents through simple analogies and clear explanations.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbooknlp

Sinusoidal Position Encoding

Jun 4, 2025·52 min read

Covers sinusoidal position encoding, the deterministic method that gives transformers positional awareness.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

The Position Problem

Jun 3, 2025·47 min read

Explains why self-attention is blind to word order and what properties positional encodings need.

Open notebook
Data, Analytics & AIMachine LearningMachine Learning from Scratch

Variable Relationships: Covariance, Correlation

Jun 3, 2025·26 min read

Compare covariance, correlation, and regression for relationships between variables. Covers interpretation, assumptions, pitfalls, and Python examples.

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

Subword Tokenization and FastText

Jun 3, 2025·14 min read

Covers FastText and subword tokenization, including character n-gram embeddings, handling out-of-vocabulary words, morphological processing.

Open notebook
AI Agent HandbookMachine LearningData, Analytics & AI

What Is an AI Agent? Components and Autonomy

Jun 3, 2025·10 min read

Explains what distinguishes AI agents from chatbots, exploring perception, reasoning, action, and autonomy.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Rotary Position Embedding (RoPE)

Jun 2, 2025·54 min read

Explains how RoPE encodes position through vector rotation, making attention scores depend on relative position.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Query, Key, Value: The Foundation of Transformer Attention

Jun 1, 2025·40 min read

Explains how QKV projections enable transformers to learn flexible attention patterns through specialized query, key, and value representations.

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

Residual Connections

Jun 1, 2025·15 min read

Covers residual connections, the architectural innovation that solved the vanishing gradient problem in deep networks.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Position Encoding Comparison: Sinusoidal, Learned, RoPE

May 31, 2025·38 min read

Compare transformer position encoding methods including sinusoidal, learned embeddings, RoPE, and ALiBi.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Relative Position Encoding

May 30, 2025·49 min read

Explains how relative position encoding improves transformer generalization by encoding token distances rather than absolute positions.

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

Google NMT: End-to-End Neural Machine Translation

May 30, 2025·14 min read

Covers Google's transition to neural machine translation in 2016. Explains how GNMT replaced statistical phrase-based methods with end-to-end neural networks.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Learned Position Embeddings

May 29, 2025·48 min read

How GPT and BERT encode position through learnable parameters. Topics include embedding tables, position similarity, interpolation techniques.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

ALiBi: Attention with Linear Biases for Position Encoding

May 28, 2025·52 min read

Explains how ALiBi encodes position through linear attention biases instead of embeddings. Topics include head-specific slopes, extrapolation properties.

Open notebook
Data, Analytics & AIMachine LearningMachine Learning from Scratch

Statistical Modeling: Overfitting, Bias and Variance

May 28, 2025·19 min read

Covers statistical modeling fundamentals, including measuring model fit with R-squared and RMSE.

Open notebook
History of Language AIMachine LearningData, Analytics & AI

Seq2Seq NMT: End-to-End Learning Revolution

May 28, 2025·30 min read

Covers sequence-to-sequence neural machine translation, the 2014 advance that changed translation from statistical pipelines to end-to-end neural models.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Multi-Head Attention

May 27, 2025·44 min read

Explains how multi-head attention runs multiple attention operations in parallel, enabling transformers to capture diverse relationships like syntax, semantics.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Attention Complexity: Quadratic Scaling, Memory Limits

May 26, 2025·62 min read

Self-attention has O(n²d) compute and quadratic memory growth. Covers when sparse, linear, and other efficient attention variants reduce those costs.

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

GloVe and Adam Optimizer: Global Word Embeddings

May 26, 2025·25 min read

Covers GloVe (Global Vectors) and the Adam optimizer, two early 2014 developments that changed neural language processing.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Scaled Dot-Product Attention: The Core Transformer Mechanism

May 25, 2025·48 min read

Covers scaled dot-product attention: how queries and keys compute similarity, why dividing by sqrt(d_k) prevents softmax saturation.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Attention Masking: Controlling Information Flow

May 24, 2025·52 min read

Covers attention masking techniques including padding masks, causal masks, and sparse patterns.

Open notebook
Data, Analytics & AIMachine LearningLLM and GenAIHistory of Language AI

Deep Learning for Speech Recognition: The 2012 DNN Results

May 24, 2025·13 min read

The application of deep neural networks to speech recognition in 2012, led by Geoffrey Hinton and his colleagues, marked a major advance.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Self-Attention Concept

May 23, 2025·50 min read

Self-attention relates every token to every other token in a sequence. Covers queries, keys, values, contextual embeddings, masking, and computational cost.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Beam Search: Decoding and Sequence Generation

May 22, 2025·48 min read

Explains how beam search balances quality and compute in sequence generation, covering greedy decoding limits, length normalization, diverse beam search.

Open notebook
Data, Analytics & AIMachine LearningMachine Learning from Scratch

Gauss-Markov Assumptions for OLS Regression

May 22, 2025·16 min read

Covers the Gauss-Markov assumptions that underpin linear regression. Topics include the five key assumptions, how to test them, consequences of violations.

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