One Hidden Layer, a Batch of Two

Matrix MultiplicationMedium+20 XP+20

One Hidden Layer, a Batch of Two

A hidden layer of a neural network processes a batch of two examples, each with three features. Rows are examples, columns are features:

X=[102−131],W=[2−10113],b=[−21]X = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \end{bmatrix}, \qquad W = \begin{bmatrix} 2 & -1 \\ 0 & 1 \\ 1 & 3 \end{bmatrix}, \qquad b = \begin{bmatrix} -2 & 1 \end{bmatrix}X=[1−1​03​21​],W=​201​−113​​,b=[−2​1​]

The layer computes

Z=XW+b,H=ReLU(Z)Z = XW + b, \qquad H = \mathrm{ReLU}(Z)Z=XW+b,H=ReLU(Z)

where the layer has one bias per hidden unit, so the same row vector bbb is added to every row of XWXWXW, and ReLU(z)=max⁡(0,z)\mathrm{ReLU}(z) = \max(0, z)ReLU(z)=max(0,z) is applied to each entry separately.

What is the hidden activation matrix HHH?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.