Skip to content

Machine Learning Programming Textbook

A free, self-paced textbook in 8 chapters. Read a chapter, then drill it with the 170 companion flashcards using spaced repetition.

8 chapters · 170 cards · Updated

Chapters

  1. 1Foundations of Machine Learning

    Machine learning is broadly categorized by how learning signals are provided to the model. In supervised learning, models are trained on labeled data—each example pairs an input wi...

  2. 2Classical Machine Learning Algorithms

    Many foundational algorithms form the backbone of practical machine learning. Linear regression models the relationship between input features and a continuous target by fitting a...

  3. 3Model Training, Optimization, and Evaluation

    Training a machine learning model requires defining an objective and a procedure to minimize it. The loss function quantifies how far predictions are from the true targets; common...

  4. 4Feature Engineering and Data Preparation

    The quality and form of input features often matter more than algorithm choice. Feature engineering creates, transforms, or selects features to expose useful signal to the model, i...

  5. 5Deep Learning Foundations

    Neural networks are computational models inspired by biological neurons. The simplest unit is the perceptron, which computes a weighted sum of inputs, adds a bias, and applies a st...

  6. 6Specialized Neural Architectures

    Different data modalities call for specialized architectures. Convolutional Neural Networks (CNNs) are designed for spatial data such as images and audio spectrograms. A convolutio...

  7. 7NLP and Generative Models

    Natural language processing builds on several foundational techniques. Tokenization splits raw text into smaller units called tokens—words, subwords, or characters. Modern systems...

  8. 8ML Systems and Applications

    Deploying machine learning at scale requires careful systems engineering. Retrieval-Augmented Generation (RAG) augments a language model by retrieving relevant external documents a...

← Back to the Machine Learning Programming deck