I'm finding myself confused everytime when I want to visualize a Neural net with input vectors and weights. Given a input like this:
Input 1 | Input 2 | Input 3 | Output |
---|---|---|---|
1 | 2 | 3 | 1 |
3 | 4 | 6 | 0 |
6 | 8 | 1 | 1 |
Assuming that I have 1 hidden layer with 3 neurons and 2 output neurons, I would like to know if my understanding of this simple neural net in a Matrix notation is correct?
X = \begin{bmatrix}1&2&3\\3&4&6\\6&8&1\end{bmatrix}
My weights Matrix would then look like:
W = \begin{bmatrix}W_{11}&W_{12}&W_{13}\\W_{21}&W_{22}&W_{23}\end{bmatrix}
Assuming the bias to be 0, my multi-variate summation equation for Neuron 1 in the hidden layer will look like (in a Matrix dot product representation):
First I guess I cannot multiply both the Matrices as it does not satisfy the rule where number or columns from Matrix 1 (in my case Matrix X) should equal the number of rows from Matrix 2 (my weights Matrix w). Correct?
So my questions are now:
Should I then choose my hidden layer to have 3 neurons?
Is my overall understanding of the whole concept correct?