This is what i'm trying to implement in Python.
- w0,...,w8 = vector w1 of shape (9,1)
- w9,...,w11 = vector w2 of shape (3,1)
- b0 (first bias) is of shape (3,1)
- b1 is of shape (1,1)
- vector X is of shape (99, 3)
I don't know where the problem resides because when I try to forward propagate, I get the not aligned error when doing the dot product since the multiplication is not possible... Is my neural network wrong ?
(9, 1)
, which would have to be multiplied with an input vector of shape(3, 1)
. You should changes your weight matrices to have shape(n_input, n_output)
, for w1 this would mean that it should have a shape of(3, 3)
. $\endgroup$(1, 3)
when initializing it or change your formula to use the transpose of your current bias vector (b1.T
). $\endgroup$