Sahin Boydas
Random theme
Select theme
Grokking Deep Learning cover

Grokking Deep Learning by Andrew Trask: neural networks built by hand

by Andrew W. Trask · Manning, 2019

By Sahin Boydas✓ Updated December 2026On 1 book list

Andrew Trask, who went on to doctoral work at Oxford, founded OpenMined, an open-source community working on privacy-preserving machine learning. His Grokking Deep Learning, published by Manning in 2019, rests on one rule: no deep learning framework. Every network is written by hand in Python with NumPy.

It starts with a single neuron making a prediction, then adds learning through gradient descent, then backpropagation across layers. Later chapters cover regularization, activation functions, convolutional networks for images, word embeddings, and recurrent networks and LSTMs that generate text in the style of Shakespeare. Midway through, readers write a small automatic differentiation library of their own, so they see what a framework does.

The final chapter turns to Trask's own field: federated learning, which trains on data that never leaves the user's device, and encryption that keeps data private during training. Manning's Grokking series is known for figures and plain explanation, and this book asks for nothing beyond high school math.

How Tech People Read It

Kelvin D. Meeks

Meeks, a technology executive, endorsed it on Manning's page as an introduction by a teacher who guides and encourages the reader. That matches the book's tone. Trask writes as if sitting beside the reader, which helps people who were put off by math-first textbooks.

Eremey Valetov

Valetov, a physicist then at Lancaster University and Fermilab, praised on Manning's page how simply and intuitively it walks through the basics. Scientists who use neural networks as a tool, without training in computer science, are a natural audience for that approach.

Programmers who want the mechanics

The deep learning list on this site recommends it to readers who would like to see what a framework handles for them before relying on one. A developer who has called PyTorch's backward function without knowing what it computes will, after this book, be able to write it. That makes framework errors much easier to read.

The Main Ideas

  • A neural network is a set of weights adjusted, one small step at a time, to reduce prediction error.
  • Backpropagation sends the error backward through the layers so each weight knows its share of the blame.
  • Writing a tiny autograd system yourself shows exactly what frameworks automate.
  • Embeddings let a network learn that words used in similar ways have similar meanings.
  • Federated learning trains a shared model without collecting users' raw data in one place.

Who Should Read It

Read it if you are a programmer starting deep learning and want to understand it from the ground up, or if math-heavy textbooks lost you. It is a good first book. Skip it if you need current architectures; it predates transformers, so follow it with Understanding Deep Learning or Build a Large Language Model (From Scratch) from the same list.

The Book

Cover of Grokking Deep Learning by Andrew W. Trask

Book 01 Beginner

Grokking Deep Learning

by Andrew W. Trask

Publisher
Manning, 2019
Free online
No
Goodreads
4.22 of 5 from 269 ratings

Why read it

You write every network yourself in Python and NumPy, with no framework, starting from a single neuron and backpropagation. Later chapters train networks on images and text, generate Shakespeare-like text, and cover privacy-preserving ideas such as federated learning. It asks for high-school maths. Read it if you want to know what a framework does for you before you use one.

What people said

  • “An excellent introduction and overview of deep learning by a masterful teacher who guides, illuminates, and encourages you along the way.”

    Kelvin D. Meeks, International Technology Ventures. Reader endorsement printed on Manning's page manning.com ↗

  • “Excels at navigating the reader through the introductory details of deep learning in a simple and intuitive way.”

    Eremey Valetov, Lancaster University/Fermilab. Reader endorsement printed on Manning's page manning.com ↗

Watch

Learn Deep Learning with Andrew Trask: Grokking Deep LearningPython ProgrammerA seven-minute review that recommends the book as a first deep learning book.

On These Book Lists

Frequently Asked Questions

Does Grokking Deep Learning use PyTorch or TensorFlow?

Neither. Every network is written in Python and NumPy, so you see each calculation.

What math do I need for Grokking Deep Learning?

High school algebra. The book explains the calculus ideas it needs, such as derivatives, in plain terms.

Is Grokking Deep Learning outdated?

Its fundamentals are current. It stops before transformers and modern language models, so read a newer book after it.

Who is Andrew Trask?

A machine learning researcher who studied at Oxford and founded OpenMined, a community building tools for privacy-preserving AI.