Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: 斋藤康毅

本书是深度学习真正意义上的入门书,深入浅出地剖析了深度学习的原理和相关技术。书中使用Python3,尽量不依赖外部库或工具,从基本的数学知识出发,带领读者从零创建一个经典的深度学习网络,使读者在此过程中逐步理解深度学习。书中不仅介绍了深度学习和神经网络的概念、特征等基础知识,对误差反向传播法、卷积神经网络等也有深入讲解,此外还介绍了深度学习相关的实用技巧,自动驾驶、图像生成、强化学习等方面的应用,以及为什么加深层可以提高识别精度等“为什么”的问题。

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on introduction to deep learning that builds a working neural network from scratch in Python, using only NumPy and Matplotlib, so you understand every line rather than calling a library. Best for programmers and students who know basic Python and want the "why" behind backpropagation, CNNs, and training tricks. 【Book Arc】 - **Opening (~0%–15%)**: Sets up the philosophy of building from scratch and the toolchain — Python 3, NumPy, Matplotlib, Anaconda — plus the array and plotting basics you'll reuse throughout. - **Early (~15%–30%)**: Starts from the perceptron (AND/OR/NAND gates, the XOR limitation) and moves to neural networks: activation functions (step, sigmoid, ReLU), multi-dimensional array computation, a 3-layer forward pass, softmax, and MNIST handwriting recognition. - **Middle (~30%–60%)**: The learning core — data-driven learning, loss functions (MSE, cross-entropy), numerical differentiation and gradient descent, mini-batch training, then computational graphs, the chain rule, and the error backpropagation method implemented layer by layer (ReLU, Sigmoid, Affine, Softmax-with-Loss). - **Late (~60%–85%)**: Practical training techniques — parameter update methods (SGD, Momentum, AdaGrad, Adam), weight initialization, Batch Normalization, regularization, and hyperparameter validation, framed around making training actually converge. - **Ending (~85%–100%)**: Convolutional neural networks and why deeper layers improve recognition accuracy, closing with application outlooks such as autonomous driving, image generation, and reinforcement learning (excerpts cover these only at the summary level). 【Key Takeaways】 - **Build it yourself to actually learn it** (Opening): The book's stated reason for avoiding frameworks is that struggling through implementation produces durable understanding that pays off when you later use libraries or read papers. - **Perceptrons are linear separators** (Early): AND/OR/NAND are representable with tuned weights, but XOR is not — and stacking layers (a 2-layer perceptron) resolves this, foreshadowing why depth matters. - **Activation functions must be smooth for learning** (Middle): Step functions have zero slope almost everywhere, so gradient-based learning stalls; sigmoid's continuous, non-zero derivative is what makes training work. - **Loss functions, not accuracy, drive learning** (Middle): Accuracy changes in discrete jumps and barely reacts to small weight tweaks, while cross-entropy changes continuously — making it a usable optimization signal. - **Backpropagation is the efficient gradient engine** (Middle): Computational graphs plus the chain rule let you compute gradients layer by layer; the book builds each layer's forward and backward pass and verifies them against numerical differentiation. - **Softmax is for training, not inference** (Middle): Inference only needs the highest score, so the Softmax layer is skipped; the Softmax-with-Loss layer is used during learning to connect scores to cross-entropy. - **Plain SGD is often inefficient** (Late): On anisotropic functions SGD zigzags; Momentum, AdaGrad, and Adam are introduced as smarter alternatives, with small constants like 1e-7 guarding against division by zero. - **Batch processing speeds up computation** (Early): Packing images into mini-batches lets optimized array libraries do large matrix operations at once, cutting per-image processing time. 【Reading Tips】 - Deep-read the backpropagation chapter (computational graphs, chain rule, layer implementations) — it is the conceptual hinge of the whole book; skimming it will make later chapters opaque. - Skim the Python/NumPy/Matplotlib setup chapter if you already code in Python; return to it only for the array-broadcasting and `np.dot` patterns used later. - Type out and run the code rather than reading it passively — the book's value is in the trial-and-error of building layers and watching loss decrease. - Pay attention to the "why" passages (why sigmoid over step, why loss over accuracy, why depth helps) — these are the transferable insights, not the syntax. - Treat the final application chapter as a map of where to go next, not as material to master. 【Coverage Limits】 The excerpts are heavily weighted toward the early and middle chapters (perceptrons through backpropagation and optimizer basics); the CNN, depth, and application chapters are only visible at the summary level, so this guide describes them in outline rather than detail.
Page 12
6.1 Affine层· ·······································144 5.6.2 批版本的Affine层· ·······························148 5.6.3 Softmax-with-Loss 层· ····················...
View in text
Excerpt 2
) 50   第3章 神经网络 5 4 3 2 1 0 −1 −6 −4 −2 0 2 4 6 图3-9 ReLU函数 这里使用了NumPy的 maximum函数。maximum函数会从输入的数值中选 择较大的那个值进行输出。 本章剩余部分的内容仍将使用 sigmoid函数作为激活函数,但在本书的 后半部分,则将...
View in text
Excerpt 3
racy_cnt) / len(x))) 我们来逐个解释粗体的代码部分。首先是range()函数。range()函数若 指定为range(start, end),则会生成一个由start到end-1之间的整数构成的 列表。若像range(start, end, step)这样指定3个整数,则生成的列表中的 下一个...
View in text
Excerpt 4
计算结果全部保存起来(比如,计算进行到2个苹 果时的金额是200日元、加上消费税之前的金额650日元等)。但是只有这些 理由可能还无法令人信服。实际上,使用计算图最大的原因是,可以通过反 向传播高效计算导数。 在介绍计算图的反向传播时,我们再来思考一下问题1。问题1中,我 们计算了购买2个苹果时加上消费税最终需要...
View in text
Excerpt 5
将这两个方法融合在一起会怎么样 y 178   第6章 与学习相关的技巧 这里假设神经网络有5层,每层有100个神经元。然后,用高斯分布随 机生成1000个数据作为输入数据,并把它们传给5层神经网络。激活函数使 用 sigmoid函数,各层的激活值的结果保存在activations变量中。这个代码 段中需要注意的...
View in text
Excerpt 6
, 5, stride=1, pad=0) print(col2.shape) # (90, 75) 这里举了两个例子。第一个是批大小为1、通道为3的7 × 7的数据,第 二个的批大小为10,数据形状和第一个相同。分别对其应用im2col函数,在 这两种情形下,第2维的元素个数均为75。这是滤波器(通道为3、大小...
View in text
Excerpt 7
eight layer F(x) relu x weight layer identity F(x) + x relu 图8-12 ResNet的构成要素(引用自文献 [24]):这里的“weight layer”是指卷积层 因为快捷结构只是原封不动地传递输入数据,所以反向传播时会将 来自上游的梯度原封不动地传向...
View in text
Excerpt 8
gion Proposal Networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, & R. Garnett, eds. Advances in Neural Information Processing Systems 28. Curran...
View in text
Tags
AI categories
Artificial IntelligencePythonProgramming
ISBN: 7115485585
Publish Year: 2018
Language: Chinese
Pages: 285
File Format: PDF
File Size: 10.7 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…