Machine Learning Fundamentals · 免费预览

计算图上的前向传播

前向传播按依赖顺序计算并存储每一个中间量,而把这种依赖关系画成图,正是使反向传播成为机械化过程的原因。

1. The forward pass, in order

The forward pass, in order

2. Reading the graph

Reading the graph

3. What has to be kept

What has to be kept

4. Why the graph helps the backward pass

A computational graph records that h\mathbf{h} is the result of applying ϕ\phi to z\mathbf{z}, and that z\mathbf{z} is the result of a matrix product of W(1)\mathbf{W}^{(1)} with x\mathbf{x}. What does this structure give the backward pass?

5. The hidden activation formula

With no bias in the hidden layer, the hidden activation h\mathbf{h} satisfies h=ϕ(z)\mathbf{h} = \phi(\mathbf{z}) where z=W(1)x\mathbf{z} = \mathbf{W}^{(1)}\mathbf{x}. The dimension of z\mathbf{z} is ____ for hh hidden units.

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课