Grokking Deep Learning · 逐章笔记
Andrew Trask 的书配套 notebook。仓库里只有代码,几乎没有正文,所以每一章都配了我写的中文导读与代码旁注:左边是这一步在算什么,右边是它当时的输出。不用装 Jupyter 也能读。
- 第 3 章 · 前向传播
一条权重、一个输入,先把「预测」这件事看清。
导读 + 8 条代码旁注
Chapter3 - Forward Propagation - Intro to Neural Prediction - 第 4 章 · 梯度下降
只有一条权重时,怎么用误差调它。
导读 + 10 条代码旁注
Chapter4 - Gradient Descent - Intro to Neural Learning - 第 5 章 · 梯度下降的推广
一次调多条权重,真正开始学「怎么学」。
导读 + 7 条代码旁注
Chapter5 - Generalizing Gradient Descent - Learning Multiple Weights at a Time - 第 6 章 · 反向传播
搭第一个有两层的深层网络,让误差一层层往回走。
导读 + 7 条代码旁注
Chapter6 - Intro to Backpropagation - Building Your First DEEP Neural Network - 第 8 章 · 正则化
噪声与信号的分离:网络凭什么记住规律而不是记答案。
导读 + 6 条代码旁注
Chapter8 - Intro to Regularization - Learning Signal and Ignoring Noise - 第 9 章 · 激活函数
把输出压成概率,从此能算「有多像」。
导读 + 1 条代码旁注
Chapter9 - Intro to Activation Functions - Modeling Probabilities - 第 10 章 · 卷积网络入门
从图像边缘学起,讲清卷积在学什么。
导读 + 1 条代码旁注
Chapter10 - Intro to Convolutional Neural Networks - Learning Edges and Corners - 第 11 章 · 词嵌入入门
让网络读懂词义,向量空间里的语义。
导读 + 12 条代码旁注
Chapter11 - Intro to Word Embeddings - Neural Networks that Understand Language - 第 12 章 · 循环网络入门
预测下一个词:记忆第一次有用。
导读 + 10 条代码旁注
Chapter12 - Intro to Recurrence - Predicting the Next Word - 第 13 章 · 自动微分入门
自己造一个小型深度学习框架,把链式法则写成代码。
导读 + 12 条代码旁注
Chapter13 - Intro to Automatic Differentiation - Let's Build A Deep Learning Framework - 第 14 章 · 长短期记忆与梯度爆炸
LSTM 怎么写莎士比亚;梯度为什么会炸。
导读 + 2 条代码旁注
Chapter14 - Exploding Gradients Examples - 第 14 章 · 长短期记忆与梯度爆炸
LSTM 怎么写莎士比亚;梯度为什么会炸。
导读 + 6 条代码旁注
Chapter14 - Intro to LSTMs - Learn to Write Like Shakespeare - 第 14 章 · 长短期记忆与梯度爆炸
LSTM 怎么写莎士比亚;梯度为什么会炸。
导读 + 9 条代码旁注
Chapter14 - Intro to LSTMs - Part 2 - Learn to Write Like Shakespeare - 第 15 章 · 联邦学习入门
在看不见的数据上做深度学习。
导读 + 12 条代码旁注
Chapter15 - Intro to Federated Learning - Deep Learning on Unseen Data - MNIST 预处理脚本
前面几章的辅助脚本:把 MNIST 的图片读成数组再存下来。
原文 notebook(尚无导读)
MNISTPreprocessor