I am trying to implement backpropagation by my own.
Suppose I have a simple vector with whole numbers like the following:
x=[5,3,6,4]
What I would like to do is create matrices, using the previous vector or any like that one. Foe example:
W1 = np.random.normal(loc=0.0, scale=1.0, size=(5,3))
W2 = np.random.normal(loc=0.0, scale=1.0, size=(3,6))
W3 = np.random.normal(loc=0.0, scale=1.0, size=(6,4))
How can I achieve this? The main problem, I guess, is that I cannot name and declare all of this matrices inside a for loop. What would be the most appropiate way of doing this?