A1 and A1 are multidimensional?

I’m doing the second programming assignment: “regularization” I’m confused as to why A1 and A2 are multi dimensional matrices. I thought the the activations were meant to be of shape (X, 1), representing one layers of activation in the neural network.

Thanks

If it helps, I’ve realised it stems from the fact that X is multidimensional (shape is (3, 5))

The second (column) dimension of the activation matrices (A1, A2, …) is the number of samples, right? The point is that we are vectorizing forward propagation across the samples (in the batch or mini-batch as appropriate).

1 Like

Omg of course, I knew it would be something simple I’d missed, thanks!